/*C://xampp//htdocs//Televisa//\art_latestnews_01\js\art_latestnews_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {
    (function(T, $) {
        var onDocumentReady = function() {
            var $parent = $('div.art_latestnews_01');        
            var $clickListA = $parent.find('.art_latestnews_01_lasth');
            var $clickListB = $parent.find('.art_latestnews_01_morev');
            var $overLink = $parent.find('.art_latestnews_01_list1 li');
            $clickListA.bind('click', function(evt) {
                evt.preventDefault();
                $('.art_latestnews_01_morev').removeClass("selected");
                $(this).addClass("selected");
                $('.art_latestnews_01_list1').show();
                $('.art_latestnews_01_list2').hide();
            });
            $clickListB.bind('click', function(evt) {
                evt.preventDefault();
                $(this).addClass("selected");
                $('.art_latestnews_01_lasth').removeClass("selected");
                $('.art_latestnews_01_list1').hide();
                $('.art_latestnews_01_list2').show();
            });
            if (T.getDeviceSize() == 'large') {
                $overLink.bind('mouseover', function(evt) {
                    evt.preventDefault();
                    $(this).find('.art_latestnews_01_over').css("display","block");
                });
                $overLink.bind('mouseout', function(evt) {
                    evt.preventDefault();
                    $(this).find('.art_latestnews_01_over').css("display","none");
                });   
            } 
            $(window).resize(function() {
                if( $(window).width() > 960 ){
                    $overLink.bind('mouseover', function(evt) {
                        evt.preventDefault();
                        $(this).find('.art_latestnews_01_over').css("display","block");
                    });
                    $overLink.bind('mouseout', function(evt) {
                        evt.preventDefault();
                        $(this).find('.art_latestnews_01_over').css("display","none");
                    });   
                }
                if( $(window).width() <= 960 ){
                    $overLink.bind('mouseover', function(evt) {
                        evt.preventDefault();
                        $(this).find('.art_latestnews_01_over').css("display","none");
                    });
                }
            });
        };
        $(onDocumentReady);
    }(Televisa, jQuery));

});/*C://xampp//htdocs//Televisa//\art_latestnews_01\js\art_latestnews_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\btn_6prog_02\js\btn_6prog_02.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {	
	
	// sacamos cuantas imagenes
	//var totalImagenes = $(".btn_6prog_02 .type1a .carrusel ul").length;
	
	// Sacamos el ancho total del UL del carrusel
	var anchoTotalUL = $(".btn_6prog_02 .type1a .carrusel ul").width(); // 100%
	
	
	var bulletSelected;
	var scrollLeft;
	
	
	$('.btn_6prog_02 .type1a .carrusel').scroll(function(e){
		
		if ($.browser.msie && parseInt($.browser.version, 10) <= 7){
			var anchoVentna = document.body.offsetWidth;
			//alert($.width());
			//alert(document.body.offsetWidth);
		}
		else{
			var anchoVentna =  $(window).width();
		}
		
		scrollLeft = $(this).scrollLeft() + (anchoVentna/2.5) ;
		
		//alert ( scrollLeft );
        
		var porcentaje =  ( scrollLeft * 1000) / anchoTotalUL; 
		//alert ( porcentaje );
		
		if( porcentaje >= 80)
			bulletSelected = 5;
		else if( porcentaje >= 60)
			bulletSelected = 4;
		else if( porcentaje >= 40)
			bulletSelected = 3;
		else if( porcentaje >= 20)
			bulletSelected = 2;
		else 
			bulletSelected = 1;
			
		//alert(bulletSelected);
		
		$('.btn_6prog_02 .bullets ul li').removeClass('selected');
		$(".btn_6prog_02 .bullets ul li:nth-child("+bulletSelected+")").addClass('selected');
    });

});/*C://xampp//htdocs//Televisa//\btn_6prog_02\js\btn_6prog_02.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\btn_6prog_02\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\btn_6prog_02\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\footer.js*/

 /* ******************************************************* */ 
 (function() {
    $(document).ready(function() {
        var blueRow = $(".blue-row");

        blueRow.find(".show").bind("click",function(event){
            event.preventDefault();
            blueRow.removeClass("notExpanded");
            blueRow.addClass("expanded");
        });

        blueRow.find(".hide").bind("click",function(event){
            event.preventDefault();
            blueRow.removeClass("expanded");
            blueRow.addClass("notExpanded");
        });

    });
}());
/*C://xampp//htdocs//Televisa//\example\js\footer.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\headjs.js*/

 /* ******************************************************* */ 
 /**
    Head JS     The only script in your <HEAD>
    Copyright   Tero Piirainen (tipiirai)
    License     MIT / http://bit.ly/mit-license
    Version     0.96

    http://headjs.com
*/
(function(doc) {

    var html = doc.documentElement,
         conf = {
            screens: [320, 480, 640, 768, 1024, 1280, 1440, 1680, 1920],
            section: "-section",
            page: "-page",
            head: "head"
         },
         klass = [];


    if (window.head_conf) {
        for (var key in head_conf) {
            if (head_conf[key] !== undefined) {
                conf[key] = head_conf[key];
            }
        }
    }

    function pushClass(name) {
        klass[klass.length] = name;
    }

    function removeClass(name) {
        var re = new RegExp("\\b" + name + "\\b");
        html.className = html.className.replace(re, '');
    }

    function each(arr, fn) {
        for (var i = 0, arr_length = arr.length; i < arr_length; i++) {
            fn.call(arr, arr[i], i);
        }
    }

    // API
    var api = window[conf.head] = function() {
        api.ready.apply(null, arguments);
    };

    api.feature = function(key, enabled, queue) {

        // internal: apply all classes
        if (!key) {
            html.className += ' ' + klass.join( ' ' );
            klass = [];
            return;
        }

        if (Object.prototype.toString.call(enabled) == '[object Function]') {
            enabled = enabled.call();
        }

        pushClass((enabled ? '' : 'no-') + key);
        api[key] = !!enabled;

        // apply class to HTML element
        if (!queue) {
            removeClass('no-' + key);
            removeClass(key);
            api.feature();
        }

        return api;
    };

    // browser type & version
    var ua = navigator.userAgent.toLowerCase();

    ua = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
        /(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
        /(msie) ([\w.]+)/.exec( ua ) ||
        !/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) || [];


    if (ua[1] == 'msie') {
        ua[1] = 'ie';
        ua[2] = document.documentMode || ua[2];
    }

    pushClass(ua[1]);

    api.browser = { version: ua[2] };
    api.browser[ua[1]] = true;

    // IE specific
    if (api.browser.ie) {

        pushClass("ie" + parseFloat(ua[2]));

        // IE versions
        for (var ver = 3; ver < 11; ver++) {
            if (parseFloat(ua[2]) < ver) { pushClass("lt-ie" + ver); }
        }

        // HTML5 support
        each("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"), function(el) {
            doc.createElement(el);
        });
                
    }
    

    // CSS "router"
    each(location.pathname.split("/"), function(el, i) {

        if (this.length > 2 && this[i + 1] !== undefined) {
            if (i) { pushClass(this.slice(1, i+1).join("-") + conf.section); }

        } else {

            // pageId
            var id = el || "index", index = id.indexOf(".");
            if (index > 0) { id = id.substring(0, index); }
            html.id = id + conf.page;

            // on root?
            if (!i) { pushClass("root" + conf.section); }
      }
    });


    // screen resolution: w-100, lt-480, lt-1024 ...
    function screenSize() {
        var w = window.outerWidth || html.clientWidth;

        // remove earlier widths
        html.className = html.className.replace(/ (w|lt)-\d+/g, "");

        // add new ones
        pushClass("w-" + Math.round(w / 100) * 100);

        each(conf.screens, function(width) {
            if (w <= width) { pushClass("lt-" + width); }
        });

        api.feature();
    }

    screenSize();
    window.onresize = screenSize;

    api.feature("js", true).feature();

})(document);


/**
    Head JS     The only script in your <HEAD>
    Copyright   Tero Piirainen (tipiirai)
    License     MIT / http://bit.ly/mit-license
    Version     0.96

    http://headjs.com
*/
(function() {
    /*
        To add a new test:

        head.feature("video", function() {
            var tag = document.createElement('video');
            return !!tag.canPlayType;
        });

        Good place to grab more tests

        https://github.com/Modernizr/Modernizr/blob/master/modernizr.js
    */


    /* CSS modernizer */
    var el = document.createElement("i"),
         style = el.style,
         prefs = ' -o- -moz- -ms- -webkit- -khtml- '.split(' '),
         domPrefs = 'Webkit Moz O ms Khtml'.split(' '),

         head_var = window.head_conf && head_conf.head || "head",
         api = window[head_var];


     // Thanks Paul Irish!
    function testProps(props) {
        for (var i in props) {
            if (style[props[i]] !== undefined) {
                return true;
            }
        }
    }


    function testAll(prop) {
        var camel = prop.charAt(0).toUpperCase() + prop.substr(1),
             props   = (prop + ' ' + domPrefs.join(camel + ' ') + camel).split(' ');

        return !!testProps(props);
    }

    var tests = {

        gradient: function() {
            var s1 = 'background-image:',
                 s2 = 'gradient(linear,left top,right bottom,from(#9f9),to(#fff));',
                 s3 = 'linear-gradient(left top,#eee,#fff);';

            style.cssText = (s1 + prefs.join(s2 + s1) + prefs.join(s3 + s1)).slice(0,-s1.length);
            return !!style.backgroundImage;
        },

        rgba: function() {
            style.cssText = "background-color:rgba(0,0,0,0.5)";
            return !!style.backgroundColor;
        },

        opacity: function() {
            return el.style.opacity === "";
        },

        textshadow: function() {
            return style.textShadow === '';
        },

        multiplebgs: function() {
            style.cssText = "background:url(//:),url(//:),red url(//:)";
            return new RegExp("(url\\s*\\(.*?){3}").test(style.background);
        },

        boxshadow: function() {
            return testAll("boxShadow");
        },

        borderimage: function() {
            return testAll("borderImage");
        },

        borderradius: function() {
            return testAll("borderRadius");
        },

        cssreflections: function() {
            return testAll("boxReflect");
        },

        csstransforms: function() {
            return testAll("transform");
        },

        csstransitions: function() {
            return testAll("transition");
        },

        /*
            font-face support. Uses browser sniffing but is synchronous.

            http://paulirish.com/2009/font-face-feature-detection/
        */
        fontface: function() {
            var ua = navigator.userAgent, parsed;

            if (/*@cc_on@if(@_jscript_version>=5)!@end@*/0)
                return true;
                
            if (parsed = ua.match(/Chrome\/(\d+\.\d+\.\d+\.\d+)/))
                return parsed[1] >= '4.0.249.4' || 1 * parsed[1].split(".")[0] > 5;
            if ((parsed = ua.match(/Safari\/(\d+\.\d+)/)) && !/iPhone/.test(ua))
                return parsed[1] >= '525.13';
            if (/Opera/.test({}.toString.call(window.opera)))
                return opera.version() >= '10.00';
            if (parsed = ua.match(/rv:(\d+\.\d+\.\d+)[^b].*Gecko\//))
                return parsed[1] >= '1.9.1';

            return false;
        }
    };

    // queue features
    for (var key in tests) {
        if (tests[key]) {
            api.feature(key, tests[key].call(), true);
        }
    }

    // enable features at once
    api.feature();

})();


/**
    Head JS     The only script in your <HEAD>
    Copyright   Tero Piirainen (tipiirai)
    License     MIT / http://bit.ly/mit-license
    Version     0.96

    http://headjs.com
*/
(function(doc) {

    var head = doc.documentElement,
        isHeadReady,
        isDomReady,
        domWaiters = [],
        queue = [],        // waiters for the "head ready" event
        handlers = {},     // user functions waiting for events
        scripts = {},      // loadable scripts in different states
        isAsync = doc.createElement("script").async === true || "MozAppearance" in doc.documentElement.style || window.opera;


    /*** public API ***/
    var head_var = window.head_conf && head_conf.head || "head",
         api = window[head_var] = (window[head_var] || function() { api.ready.apply(null, arguments); });

    // states
    var PRELOADED = 1,
        PRELOADING = 2,
        LOADING = 3,
        LOADED = 4;


    // Method 1: simply load and let browser take care of ordering
    if (isAsync) {

        api.js = function() {

            var args = arguments,
                 fn = args[args.length -1],
                 els = {};

            if (!isFunc(fn)) { fn = null; }

            each(args, function(el, i) {

                if (el != fn) {
                    el = getScript(el);
                    els[el.name] = el;

                    load(el, fn && i == args.length -2 ? function() {
                        if (allLoaded(els)) { one(fn); }

                    } : null);
                }
            });

            return api;
        };


    // Method 2: preload with text/cache hack
    } else {

        api.js = function() {

            var args = arguments,
                rest = [].slice.call(args, 1),
                next = rest[0];

            // wait for a while. immediate execution causes some browsers to ignore caching
            if (!isHeadReady) {
                queue.push(function()  {
                    api.js.apply(null, args);
                });
                return api;
            }

            // multiple arguments
            if (next) {

                // load
                each(rest, function(el) {
                    if (!isFunc(el)) {
                        preload(getScript(el));
                    }
                });

                // execute
                load(getScript(args[0]), isFunc(next) ? next : function() {
                    api.js.apply(null, rest);
                });


            // single script
            } else {
                load(getScript(args[0]));
            }

            return api;
        };
    }

    api.ready = function(key, fn) {

        // DOM ready check: head.ready(document, function() { });
        if (key == doc) {
            if (isDomReady) { one(fn);  }
            else { domWaiters.push(fn); }
            return api;
        }

        // shift arguments
        if (isFunc(key)) {
            fn = key;
            key = "ALL";
        }    

        // make sure arguments are sane
        if (typeof key != 'string' || !isFunc(fn)) { return api; }

        var script = scripts[key];
        
        // script already loaded --> execute and return
        if (script && script.state == LOADED || key == 'ALL' && allLoaded() && isDomReady) {
            one(fn);
            return api;
        }

        var arr = handlers[key];
        if (!arr) { arr = handlers[key] = [fn]; }
        else { arr.push(fn); }
        return api;
    };


    // perform this when DOM is ready
    api.ready(doc, function() {

        if (allLoaded()) {
            each(handlers.ALL, function(fn) {
                one(fn);
            });
        }

        if (api.feature) {
            api.feature("domloaded", true);
        }
    });


    /*** private functions ***/
    
    
    // call function once
    function one(fn) {
        if (fn._done) { return; }
        fn();
        fn._done = 1;
    }


    function toLabel(url) {
        var els = url.split("/"),
             name = els[els.length -1],
             i = name.indexOf("?");

        return i != -1 ? name.substring(0, i) : name;
    }


    function getScript(url) {

        var script;

        if (typeof url == 'object') {
            for (var key in url) {
                if (url[key]) {
                    script = { name: key, url: url[key] };
                }
            }
        } else {
            script = { name: toLabel(url),  url: url };
        }

        var existing = scripts[script.name];
        if (existing && existing.url === script.url) { return existing; }

        scripts[script.name] = script;
        return script;
    }


    function each(arr, fn) {
        if (!arr) { return; }

        // arguments special type
        if (typeof arr == 'object') { arr = [].slice.call(arr); }

        // do the job
        for (var i = 0; i < arr.length; i++) {
            fn.call(arr, arr[i], i);
        }
    }

    function isFunc(el) {
        return Object.prototype.toString.call(el) == '[object Function]';
    }

    function allLoaded(els) {

        els = els || scripts;

        var loaded;
        
        for (var name in els) {
            if (els.hasOwnProperty(name) && els[name].state != LOADED) { return false; }
            loaded = true;
        }
        
        return loaded;
    }


    function onPreload(script) {
        script.state = PRELOADED;

        each(script.onpreload, function(el) {
            el.call();
        });
    }

    function preload(script, callback) {

        if (script.state === undefined) {

            script.state = PRELOADING;
            script.onpreload = [];

            scriptTag({ src: script.url, type: 'cache'}, function()  {
                onPreload(script);
            });
        }
    }

    function load(script, callback) {

        if (script.state == LOADED) {
            return callback && callback();
        }

        if (script.state == LOADING) {
            return api.ready(script.name, callback);
        }

        if (script.state == PRELOADING) {
            return script.onpreload.push(function() {
                load(script, callback);
            });
        }

        script.state = LOADING;

        scriptTag(script.url, function() {

            script.state = LOADED;

            if (callback) { callback(); }

            // handlers for this script
            each(handlers[script.name], function(fn) {
                one(fn);
            });

            // everything ready
            if (allLoaded() && isDomReady) {
                each(handlers.ALL, function(fn) {
                    one(fn);
                });
            }
        });
    }


    function scriptTag(src, callback) {

        var s = doc.createElement('script');
        s.type = 'text/' + (src.type || 'javascript');
        s.src = src.src || src;
        s.async = false;

        s.onreadystatechange = s.onload = function() {

            var state = s.readyState;

            if (!callback.done && (!state || /loaded|complete/.test(state))) {
                callback.done = true;
                callback();
            }
        };

        // use body if available. more safe in IE
        (doc.body || head).appendChild(s);
    }

    /*
        The much desired DOM ready check
        Thanks to jQuery and http://javascript.nwbox.com/IEContentLoaded/
    */

    function fireReady() {
        if (!isDomReady) {
            isDomReady = true;
            each(domWaiters, function(fn) {
                one(fn);
            });
        }
    }

    // W3C
    if (window.addEventListener) {
        doc.addEventListener("DOMContentLoaded", fireReady, false);

        // fallback. this is always called
        window.addEventListener("load", fireReady, false);

    // IE
    } else if (window.attachEvent) {

        // for iframes
        doc.attachEvent("onreadystatechange", function()  {
            if (doc.readyState === "complete" ) {
                fireReady();
            }
        });


        // avoid frames with different domains issue
        var frameElement = 1;

        try {
            frameElement = window.frameElement;

        } catch(e) {}


        if (!frameElement && head.doScroll) {

            (function() {
                try {
                    head.doScroll("left");
                    fireReady();

                } catch(e) {
                    setTimeout(arguments.callee, 1);
                    return;
                }
            })();
        }

        // fallback
        window.attachEvent("onload", fireReady);
    }


    // enable document.readyState for Firefox <= 3.5
    if (!doc.readyState && doc.addEventListener) {
        doc.readyState = "loading";
        doc.addEventListener("DOMContentLoaded", handler = function () {
            doc.removeEventListener("DOMContentLoaded", handler, false);
            doc.readyState = "complete";
        }, false);
    }

    /*
        We wait for 300 ms before script loading starts. for some reason this is needed
        to make sure scripts are cached. Not sure why this happens yet. A case study:

        https://github.com/headjs/headjs/issues/closed#issue/83
    */
    setTimeout(function() {
        isHeadReady = true;
        each(queue, function(fn) { fn(); });

    }, 300);

})(document);
/*C://xampp//htdocs//Televisa//\example\js\headjs.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\modernizr.js*/

 /* ******************************************************* */ 
 /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
 * Build: http://modernizr.com/download/#-cssanimations-geolocation-touch-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
 */
;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},q.geolocation=function(){return"geolocation"in navigator},q.cssanimations=function(){return F("animationName")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};/*C://xampp//htdocs//Televisa//\example\js\modernizr.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\nav_featured_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {
    var button = $(".nav_featured_01_menu");
    var selectedButton = $(".selected");
    button.bind("click", function(){
        toggleSelect(this);
    });
    function toggleSelect(pressedButton){
        if($(pressedButton).hasClass("selected") === false){
            selectedButton.removeClass("selected");
            $(pressedButton).addClass("selected");
            selectedButton = $(pressedButton);
        }
    }
});
    /*C://xampp//htdocs//Televisa//\example\js\nav_featured_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\respond.js*/

 /* ******************************************************* */ 
 /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
var isUnsupportedAndroid = function() {
    var ua = navigator.userAgent,
        version = false;
    if (ua.indexOf('Android') > -1) {
        ua = ua.split('Android')[1];
        ua = ua.split(';')[0];
        version = parseFloat(ua);
    }
    return version && (version < 3);
};
window.matchMedia = window.matchMedia || (!isUnsupportedAndroid() && (function(doc, undefined){

  var bool,
      docElem  = doc.documentElement,
      refNode  = docElem.firstElementChild || docElem.firstChild,
      // fakeBody required for <FF4 when executed in <head>
      fakeBody = doc.createElement('body'),
      div      = doc.createElement('div');

  div.id = 'mq-test-1';
  div.style.cssText = "position:absolute;top:-100em";
  fakeBody.style.background = "none";
  fakeBody.appendChild(div);

  return function(q){

    try {
        div.innerHTML = '&shy;<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';

        docElem.insertBefore(fakeBody, refNode);
        bool = div.offsetWidth == 42;
        docElem.removeChild(fakeBody);
    } catch(err) {}

    return { matches: bool, media: q };
  };

}(document)));




/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs  */
(function( win ){
    //exposed namespace
    win.respond     = {};

    //define update even in native-mq-supporting browsers, to avoid errors
    respond.update  = function(){};

    //expose media query support flag for external use
    respond.mediaQueriesSupported   = win.matchMedia && win.matchMedia( "only all" ).matches;

    //if media queries are supported, exit here
    if( respond.mediaQueriesSupported || isUnsupportedAndroid() ){ return; }

    //define vars
    var doc             = win.document,
        docElem         = doc.documentElement,
        mediastyles     = [],
        rules           = [],
        appendedEls     = [],
        parsedSheets    = {},
        resizeThrottle  = 30,
        head            = doc.getElementsByTagName( "head" )[0] || docElem,
        base            = doc.getElementsByTagName( "base" )[0],
        links           = head.getElementsByTagName( "link" ),
        requestQueue    = [],

        //loop stylesheets, send text content to translate
        ripCSS          = function(){
            var sheets  = links,
                sl      = sheets.length,
                i       = 0,
                //vars for loop:
                sheet, href, media, isCSS;

            for( ; i < sl; i++ ){
                sheet   = sheets[ i ],
                href    = sheet.href,
                media   = sheet.media,
                isCSS   = sheet.rel && sheet.rel.toLowerCase() === "stylesheet";

                //only links plz and prevent re-parsing
                if( !!href && isCSS && !parsedSheets[ href ] ){
                    // selectivizr exposes css through the rawCssText expando
                    if (sheet.styleSheet && sheet.styleSheet.rawCssText) {
                        translate( sheet.styleSheet.rawCssText, href, media );
                        parsedSheets[ href ] = true;
                    } else {
                        if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base)
                            || href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
                            requestQueue.push( {
                                href: href,
                                media: media
                            } );
                        }
                    }
                }
            }
            makeRequests();
        },

        //recurse through request queue, get css text
        makeRequests    = function(){
            if( requestQueue.length ){
                var thisRequest = requestQueue.shift();

                // alert(window.ieVersion);
                // IE7 ONLY.
                if (window.ieVersion !== undefined && window.ieVersion === 7) {
                    setTimeout(function() {
                        ajax( thisRequest.href, function( styles ){
                            translate( styles, thisRequest.href, thisRequest.media );
                            parsedSheets[ thisRequest.href ] = true;
                            makeRequests();
                        } );
                    }, 70);
                } else {
                    ajax( thisRequest.href, function( styles ){
                        translate( styles, thisRequest.href, thisRequest.media );
                        parsedSheets[ thisRequest.href ] = true;
                        makeRequests();
                    } );
                }
            }
        },

        //find media blocks in css text, convert to style blocks
        translate           = function( styles, href, media ){
            var qs          = styles.match(  /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
                ql          = qs && qs.length || 0,
                //try to get CSS path
                href        = href.substring( 0, href.lastIndexOf( "/" )),
                repUrls     = function( css ){
                    return css.replace( /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, "$1" + href + "$2$3" );
                },
                useMedia    = !ql && media,
                //vars used in loop
                i           = 0,
                j, fullq, thisq, eachq, eql;

            //if path exists, tack on trailing slash
            if( href.length ){ href += "/"; }

            //if no internal queries exist, but media attr does, use that
            //note: this currently lacks support for situations where a media attr is specified on a link AND
                //its associated stylesheet has internal CSS media queries.
                //In those cases, the media attribute will currently be ignored.
            if( useMedia ){
                ql = 1;
            }


            for( ; i < ql; i++ ){
                j   = 0;

                //media attr
                if( useMedia ){
                    fullq = media;
                    rules.push( repUrls( styles ) );
                }
                //parse for styles
                else{
                    fullq   = qs[ i ].match( /@media *([^\{]+)\{([\S\s]+?)$/ ) && RegExp.$1;
                    rules.push( RegExp.$2 && repUrls( RegExp.$2 ) );
                }

                eachq   = fullq.split( "," );
                eql     = eachq.length;

                for( ; j < eql; j++ ){
                    thisq   = eachq[ j ];
                    mediastyles.push( {
                        media   : thisq.split( "(" )[ 0 ].match( /(only\s+)?([a-zA-Z]+)\s?/ ) && RegExp.$2 || "all",
                        rules   : rules.length - 1,
                        hasquery: thisq.indexOf("(") > -1,
                        minw    : thisq.match( /\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ),
                        maxw    : thisq.match( /\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" )
                    } );
                }
            }

            applyMedia();
        },

        lastCall,

        resizeDefer,

        // returns the value of 1em in pixels
        getEmValue      = function() {
            // FIX FOR IE...
            return 16;
            var ret,
                div = doc.createElement('div'),
                body = doc.body,
                fakeUsed = false;

            div.style.cssText = "position:absolute;font-size:1em;width:1em";

            if( !body ){
                body = fakeUsed = doc.createElement( "body" );
                body.style.background = "none";
            }

            body.appendChild( div );

            docElem.insertBefore( body, docElem.firstChild );

            ret = div.offsetWidth;

            if( fakeUsed ){
                docElem.removeChild( body );
            }
            else {
                body.removeChild( div );
            }

            //also update eminpx before returning
            ret = eminpx = parseFloat(ret);

            return ret;
        },

        //cached container for 1em value, populated the first time it's needed
        eminpx,

        //enable/disable styles
        applyMedia          = function( fromResize ){
            var name        = "clientWidth",
                docElemProp = docElem[ name ],
                currWidth   = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp,
                styleBlocks = {},
                lastLink    = links[ links.length-1 ],
                now         = (new Date()).getTime();

            //throttle resize calls
            if( fromResize && lastCall && now - lastCall < resizeThrottle ){
                clearTimeout( resizeDefer );
                resizeDefer = setTimeout( applyMedia, resizeThrottle );
                return;
            }
            else {
                lastCall    = now;
            }

            for( var i in mediastyles ){
                var thisstyle = mediastyles[ i ],
                    min = thisstyle.minw,
                    max = thisstyle.maxw,
                    minnull = min === null,
                    maxnull = max === null,
                    em = "em";

                if( !!min ){
                    min = parseFloat( min ) * ( min.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
                }
                if( !!max ){
                    max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
                }

                // if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true
                if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){
                        if( !styleBlocks[ thisstyle.media ] ){
                            styleBlocks[ thisstyle.media ] = [];
                        }
                        styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
                }
            }

            //remove any existing respond style element(s)
            for( var i in appendedEls ){
                if( appendedEls[ i ] && appendedEls[ i ].parentNode === head ){
                    head.removeChild( appendedEls[ i ] );
                }
            }

            //inject active styles, grouped by media type
            for( var i in styleBlocks ){
                var ss      = doc.createElement( "style" ),
                    css     = styleBlocks[ i ].join( "\n" );

                ss.type = "text/css";
                ss.media    = i;

                //originally, ss was appended to a documentFragment and sheets were appended in bulk.
                //this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one!
                head.insertBefore( ss, lastLink.nextSibling );

                if ( ss.styleSheet ){
                    ss.styleSheet.cssText = css;
                }
                else {
                    ss.appendChild( doc.createTextNode( css ) );
                }

                //push to appendedEls to track for later removal
                appendedEls.push( ss );
            }
        },
        //tweaked Ajax functions from Quirksmode
        ajax = function( url, callback ) {
            var req = xmlHttp();
            if (!req){
                return;
            }
            req.open( "GET", url, true );
            req.onreadystatechange = function () {
                if ( req.readyState != 4 || req.status != 200 && req.status != 304 ){
                    return;
                }
                callback( req.responseText );
            }
            if ( req.readyState == 4 ){
                return;
            }
            req.send( null );
        },
        //define ajax obj
        xmlHttp = (function() {
            var xmlhttpmethod = false;
            try {
                xmlhttpmethod = new XMLHttpRequest();
            }
            catch( e ){
                xmlhttpmethod = new ActiveXObject( "Microsoft.XMLHTTP" );
            }
            return function(){
                return xmlhttpmethod;
            };
        })();

    //translate CSS
    ripCSS();

    //expose update for re-running respond later on
    respond.update = ripCSS;

    //adjust on resize
    function callMedia(){
        applyMedia( true );
    }
    if( win.addEventListener ){
        win.addEventListener( "resize", callMedia, false );
    }
    else if( win.attachEvent ){
        win.attachEvent( "onresize", callMedia );
    }
})(this);/*C://xampp//htdocs//Televisa//\example\js\respond.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\selectivizr.js*/

 /* ******************************************************* */ 
 /*!
 * selectivizr v1.0.2 - (c) Keith Clark, freely distributable under the terms of the MIT license.
 * selectivizr.com
 */
(function(j){function A(a){return a.replace(B,h).replace(C,function(a,d,b){for(var a=b.split(","),b=0,e=a.length;b<e;b++){var s=D(a[b].replace(E,h).replace(F,h))+o,l=[];a[b]=s.replace(G,function(a,b,c,d,e){if(b){if(l.length>0){var a=l,f,e=s.substring(0,e).replace(H,i);if(e==i||e.charAt(e.length-1)==o)e+="*";try{f=t(e)}catch(k){}if(f){e=0;for(c=f.length;e<c;e++){for(var d=f[e],h=d.className,j=0,m=a.length;j<m;j++){var g=a[j];if(!RegExp("(^|\\s)"+g.className+"(\\s|$)").test(d.className)&&g.b&&(g.b===!0||g.b(d)===!0))h=u(h,g.className,!0)}d.className=h}}l=[]}return b}else{if(b=c?I(c):!v||v.test(d)?{className:w(d),b:!0}:null)return l.push(b),"."+b.className;return a}})}return d+a.join(",")})}function I(a){var c=!0,d=w(a.slice(1)),b=a.substring(0,5)==":not(",e,f;b&&(a=a.slice(5,-1));var l=a.indexOf("(");l>-1&&(a=a.substring(0,l));if(a.charAt(0)==":")switch(a.slice(1)){case "root":c=function(a){return b?a!=p:a==p};break;case "target":if(m==8){c=function(a){function c(){var d=location.hash,e=d.slice(1);return b?d==i||a.id!=e:d!=i&&a.id==e}k(j,"hashchange",function(){g(a,d,c())});return c()};break}return!1;case "checked":c=function(a){J.test(a.type)&&k(a,"propertychange",function(){event.propertyName=="checked"&&g(a,d,a.checked!==b)});return a.checked!==b};break;case "disabled":b=!b;case "enabled":c=function(c){if(K.test(c.tagName))return k(c,"propertychange",function(){event.propertyName=="$disabled"&&g(c,d,c.a===b)}),q.push(c),c.a=c.disabled,c.disabled===b;return a==":enabled"?b:!b};break;case "focus":e="focus",f="blur";case "hover":e||(e="mouseenter",f="mouseleave");c=function(a){k(a,b?f:e,function(){g(a,d,!0)});k(a,b?e:f,function(){g(a,d,!1)});return b};break;default:if(!L.test(a))return!1}return{className:d,b:c}}function w(a){return M+"-"+(m==6&&N?O++:a.replace(P,function(a){return a.charCodeAt(0)}))}function D(a){return a.replace(x,h).replace(Q,o)}function g(a,c,d){var b=a.className,c=u(b,c,d);if(c!=b)a.className=c,a.parentNode.className+=i}function u(a,c,d){var b=RegExp("(^|\\s)"+c+"(\\s|$)"),e=b.test(a);return d?e?a:a+o+c:e?a.replace(b,h).replace(x,h):a}function k(a,c,d){a.attachEvent("on"+c,d)}function r(a,c){if(/^https?:\/\//i.test(a))return c.substring(0,c.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return c.substring(0,c.indexOf("/",8))+a;var d=c.split(/[?#]/)[0];a.charAt(0)!="?"&&d.charAt(d.length-1)!="/"&&(d=d.substring(0,d.lastIndexOf("/")+1));return d+a}function y(a){if(a)return n.open("GET",a,!1),n.send(),(n.status==200?n.responseText:i).replace(R,i).replace(S,function(c,d,b,e,f){return y(r(b||f,a))}).replace(T,function(c,d,b){d=d||i;return" url("+d+r(b,a)+d+") "});return i}function U(){var a,c;a=f.getElementsByTagName("BASE");for(var d=a.length>0?a[0].href:f.location.href,b=0;b<f.styleSheets.length;b++)if(c=f.styleSheets[b],c.href!=i&&(a=r(c.href,d)))c.cssText=A(y(a));q.length>0&&setInterval(function(){for(var a=0,c=q.length;a<c;a++){var b=q[a];if(b.disabled!==b.a)b.disabled?(b.disabled=!1,b.a=!0,b.disabled=!0):b.a=b.disabled}},250)}if(!/*@cc_on!@*/true){var f=document,p=f.documentElement,n=function(){if(j.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}}(),m=/MSIE (\d+)/.exec(navigator.userAgent)[1];if(!(f.compatMode!="CSS1Compat"||m<6||m>8||!n)){var z={NW:"*.Dom.select",MooTools:"$$",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",Sizzle:"*",jQuery:"*",dojo:"*.query"},t,q=[],O=0,N=!0,M="slvzr",R=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,S=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,T=/\burl\(\s*(["']?)(?!data:)([^"')]+)\1\s*\)/g,L=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,B=/:(:first-(?:line|letter))/g,C=/(^|})\s*([^\{]*?[\[:][^{]+)/g,G=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,H=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,P=/[^\w-]/g,K=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,J=/^(checkbox|radio)$/,v=m>6?/[\$\^*]=(['"])\1/:null,E=/([(\[+~])\s+/g,F=/\s+([)\]+~])/g,Q=/\s+/g,x=/^\s*((?:[\S\s]*\S)?)\s*$/,i="",o=" ",h="$1";(function(a,c){function d(){try{p.doScroll("left")}catch(a){setTimeout(d,50);return}b("poll")}function b(d){if(!(d.type=="readystatechange"&&f.readyState!="complete")&&((d.type=="load"?a:f).detachEvent("on"+d.type,b,!1),!e&&(e=!0)))c.call(a,d.type||d)}var e=!1,g=!0;if(f.readyState=="complete")c.call(a,i);else{if(f.createEventObject&&p.doScroll){try{g=!a.frameElement}catch(h){}g&&d()}k(f,"readystatechange",b);k(a,"load",b)}})(j,function(){for(var a in z){var c,d,b=j;if(j[a]){for(c=z[a].replace("*",a).split(".");(d=c.shift())&&(b=b[d]););if(typeof b=="function"){t=b;U();break}}}})}}})(this);/*C://xampp//htdocs//Televisa//\example\js\selectivizr.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\swipe.js*/

 /* ******************************************************* */ 
 /*
 * Swipe 1.0
 *
 * Brad Birdsall, Prime
 * Copyright 2011, Licensed GPL & MIT
 *
*/

;window.Swipe = function(element, options) {

  // return immediately if element doesn't exist
  if (!element) return null;

  var _this = this;

  // retreive options
  this.options = options || {};
  this.index = this.options.startSlide || 0;
  this.speed = this.options.speed || 300;
  this.callback = this.options.callback || function() {};
  this.delay = this.options.auto || 0;

  // reference dom elements
  this.container = element;
  this.element = this.container.children[0]; // the slide pane

  // static css
  this.container.style.overflow = 'hidden';
  this.element.style.listStyle = 'none';
  this.element.style.margin = 0;

  // trigger slider initialization
  this.setup();

  // begin auto slideshow
  this.begin();

  // add event listeners
  if (this.element.addEventListener) {
    this.element.addEventListener('touchstart', this, false);
    this.element.addEventListener('touchmove', this, false);
    this.element.addEventListener('touchend', this, false);
    this.element.addEventListener('touchcancel', this, false);
    this.element.addEventListener('webkitTransitionEnd', this, false);
    this.element.addEventListener('msTransitionEnd', this, false);
    this.element.addEventListener('oTransitionEnd', this, false);
    this.element.addEventListener('transitionend', this, false);
    window.addEventListener('resize', this, false);
  }

};

Swipe.prototype = {

  setup: function() {

    // get and measure amt of slides
    this.slides = this.element.children;
    this.length = this.slides.length;

    // return immediately if their are less than two slides
    if (this.length < 2) return null;

    // determine width of each slide
    this.width = Math.ceil(("getBoundingClientRect" in this.container) ? this.container.getBoundingClientRect().width : this.container.offsetWidth);

    // Fix width for Android WebView (i.e. PhoneGap) 
    if (this.width === 0 && typeof window.getComputedStyle === 'function') {
      this.width = window.getComputedStyle(this.container, null).width.replace('px','');
    }

    // return immediately if measurement fails
    if (!this.width) return null;

    // hide slider element but keep positioning during setup
    var origVisibility = this.container.style.visibility;
    this.container.style.visibility = 'hidden';

    // dynamic css
    this.element.style.width = Math.ceil(this.slides.length * this.width) + 'px';
    var index = this.slides.length;
    while (index--) {
      var el = this.slides[index];
      el.style.width = this.width + 'px';
      el.style.display = 'table-cell';
      el.style.verticalAlign = 'top';
    }

    // set start position and force translate to remove initial flickering
    this.slide(this.index, 0); 

    // restore the visibility of the slider element
    this.container.style.visibility = origVisibility;

  },

  slide: function(index, duration) {

    var style = this.element.style;

    // fallback to default speed
    if (duration == undefined) {
        duration = this.speed;
    }

    // set duration speed (0 represents 1-to-1 scrolling)
    style.webkitTransitionDuration = style.MozTransitionDuration = style.msTransitionDuration = style.OTransitionDuration = style.transitionDuration = duration + 'ms';

    // translate to given index position
    style.MozTransform = style.webkitTransform = 'translate3d(' + -(index * this.width) + 'px,0,0)';
    style.msTransform = style.OTransform = 'translateX(' + -(index * this.width) + 'px)';

    // set new index to allow for expression arguments
    this.index = index;

  },

  getPos: function() {
    
    // return current index position
    return this.index;

  },

  prev: function(delay) {

    // cancel next scheduled automatic transition, if any
    this.delay = delay || 0;
    clearTimeout(this.interval);

    if (this.index) this.slide(this.index-1, this.speed); // if not at first slide
    else this.slide(this.length - 1, this.speed); //if first slide return to end

  },

  next: function(delay) {

    // cancel next scheduled automatic transition, if any
    this.delay = delay || 0;
    clearTimeout(this.interval);

    if (this.index < this.length - 1) this.slide(this.index+1, this.speed); // if not last slide
    else this.slide(0, this.speed); //if last slide return to start

  },

  begin: function() {

    var _this = this;

    this.interval = (this.delay)
      ? setTimeout(function() { 
        _this.next(_this.delay);
      }, this.delay)
      : 0;
  
  },
  
  stop: function() {
    this.delay = 0;
    clearTimeout(this.interval);
  },
  
  resume: function() {
    this.delay = this.options.auto || 0;
    this.begin();
  },

  handleEvent: function(e) {
    switch (e.type) {
      case 'touchstart': this.onTouchStart(e); break;
      case 'touchmove': this.onTouchMove(e); break;
      case 'touchcancel' :
      case 'touchend': this.onTouchEnd(e); break;
      case 'webkitTransitionEnd':
      case 'msTransitionEnd':
      case 'oTransitionEnd':
      case 'transitionend': this.transitionEnd(e); break;
      case 'resize': this.setup(); break;
    }
  },

  transitionEnd: function(e) {
    
    if (this.delay) this.begin();

    this.callback(e, this.index, this.slides[this.index]);

  },

  onTouchStart: function(e) {
    
    this.start = {

      // get touch coordinates for delta calculations in onTouchMove
      pageX: e.touches[0].pageX,
      pageY: e.touches[0].pageY,

      // set initial timestamp of touch sequence
      time: Number( new Date() )

    };

    // used for testing first onTouchMove event
    this.isScrolling = undefined;
    
    // reset deltaX
    this.deltaX = 0;

    // set transition time to 0 for 1-to-1 touch movement
    this.element.style.MozTransitionDuration = this.element.style.webkitTransitionDuration = 0;
    
    e.stopPropagation();
  },

  onTouchMove: function(e) {

    // ensure swiping with one touch and not pinching
    if(e.touches.length > 1 || e.scale && e.scale !== 1) return;

    this.deltaX = e.touches[0].pageX - this.start.pageX;

    // determine if scrolling test has run - one time test
    if ( typeof this.isScrolling == 'undefined') {
      this.isScrolling = !!( this.isScrolling || Math.abs(this.deltaX) < Math.abs(e.touches[0].pageY - this.start.pageY) );
    }

    // if user is not trying to scroll vertically
    if (!this.isScrolling) {

      // prevent native scrolling 
      e.preventDefault();

      // cancel slideshow
      clearTimeout(this.interval);

      // increase resistance if first or last slide
      this.deltaX = 
        this.deltaX / 
          ( (!this.index && this.deltaX > 0               // if first slide and sliding left
            || this.index == this.length - 1              // or if last slide and sliding right
            && this.deltaX < 0                            // and if sliding at all
          ) ?                      
          ( Math.abs(this.deltaX) / this.width + 1 )      // determine resistance level
          : 1 );                                          // no resistance if false
      
      // translate immediately 1-to-1
      this.element.style.MozTransform = this.element.style.webkitTransform = 'translate3d(' + (this.deltaX - this.index * this.width) + 'px,0,0)';
      
      e.stopPropagation();
    }

  },

  onTouchEnd: function(e) {

    // determine if slide attempt triggers next/prev slide
    var isValidSlide = 
          Number(new Date()) - this.start.time < 250      // if slide duration is less than 250ms
          && Math.abs(this.deltaX) > 20                   // and if slide amt is greater than 20px
          || Math.abs(this.deltaX) > this.width/2,        // or if slide amt is greater than half the width

    // determine if slide attempt is past start and end
        isPastBounds = 
          !this.index && this.deltaX > 0                          // if first slide and slide amt is greater than 0
          || this.index == this.length - 1 && this.deltaX < 0;    // or if last slide and slide amt is less than 0

    // if not scrolling vertically
    if (!this.isScrolling) {

      // call slide function with slide end value based on isValidSlide and isPastBounds tests
      this.slide( this.index + ( isValidSlide && !isPastBounds ? (this.deltaX < 0 ? 1 : -1) : 0 ), this.speed );

    }
    
    e.stopPropagation();
  }

};
/*C://xampp//htdocs//Televisa//\example\js\swipe.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\Televisa.js*/

 /* ******************************************************* */ 
 /**
 * 'Global' module
 */
var Televisa = (function ($, Modernizr) {

    var T = {},
        isReady = false,
        isLogged = true,
        modules = {},
        loadedModules = {},

        isTouchDevice = Modernizr.touch,
        lastWidthCheck = window.lastWidthCheck = null,

        DeviceSizes = {
            SMALL: 'small',
            MEDIUM: 'medium',
            LARGE: 'large'
        },
        deviceSize = DeviceSizes.SMALL;

    /**
     * Given the event returned by $(window).resize(), fills the 'deviceSize' variable
     * with one of the device sizes specified in 'DeviceSizes' and triggers an event
     * called 'resize.Televisa' that other objects or methods can subscribe to (if necessary)
     *
     * @param Event object
     * @return void
     * @visibility <private>
     */
    function calculateSize (data) {
        var w = T.getClientWidth();

        // 624 = 39em
        // 960 = 60em
        if (w < 624) {
            deviceSize = DeviceSizes.SMALL;
        } else if (w >= 624 && w < 960) {
            deviceSize = DeviceSizes.MEDIUM;
        } else {
            deviceSize = DeviceSizes.LARGE;
        }

        // Emit an event notifying that the window has been resized
        $(Televisa).trigger('resize.Televisa', data);

        return;
    }

    /**
     * Helper to create throttle functions
     *
     * @param function handler Method to proxy by
     * @param integer time Time to throttle by. Default: 500 (optional)
     * @return function
     */
    T.throttle = function(handler, time) {
        var throttle;
        time = time || 500;
        return function() {
            var args = arguments,
                context = this;
            clearTimeout(throttle);
            throttle = setTimeout(function() {
                handler.apply(context, args);
            }, time);
        };
    };

    /**
     * This is the main entry point for the class, it works as a sort of weird 'constructor'
     * that gets called when $(document).ready() is triggered.
     *
     * @return void
     * @visibility <public>
     */
    T.init = function () {

        // Calculate the window size
        calculateSize();
        $(window).resize(function() {
            if (lastWidthCheck !== T.getClientWidth()) {
                lastWidthCheck = T.getClientWidth();
                calculateSize();
            }
        });

        // Set myself as ready
        isReady = true;

        // Load the other modules
        for (var m in modules) {
             modules[m].run();
        }

        if (window.ieVersion !== undefined && window.ieVersion === 7) {
            // Stop IE7 from showing mobile first, then medium and then large
            // We should wait to show the site until all stylesheets are properly loaded.
            setTimeout(function() {
                $('body').show();
            }, 1500);
        }

        // Load FB asynchronously to stop IE7 from BLOWING UP.
        window.fbAsyncInit = function() {
            if (FB) {
                FB.init({
                    appId      : '126915557457520', // App ID
                    channelUrl : 'http://rga.com/channel.html', // Channel File
                    status     : true, // check login status
                    cookie     : true, // enable cookies to allow the server to access the session
                    xfbml      : true  // parse XFBML
                });

                // Additional initialization code here
            }
        };

        // Load the SDK Asynchronously
        (function(d){
            var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
            if (d.getElementById(id)) {return;}
            js = d.createElement('script'); js.id = id; js.async = true;
            js.src = "//connect.facebook.net/en_US/all.js";
            ref.parentNode.insertBefore(js, ref);
        }(document));

        // Disable zooming in on input elements
        if (T.isIOS()) {
            $('input[type="text"], input[type="number"], textarea, select').bind('focus blur', function(e) {
                if (window.orientation === 0) {
                    $('meta[name="viewport"]').attr('content', 'width=device-width, initial-scale=1, maximum-scale=' + (e.type === 'blur' ? 10 : 1));
                }
            });
        }

        return;

    };

    /**
     * Registers a new module. This method is usually called by submodules, and when they do
     * they will automatically execute their pre-initialization functions.
     *
     * @param Module object
     * @return void
     * @visibility <public>
     */
    T.registerModule = function (m) {
        modules[m.getName()] = m;

        return;
    };

    /**
     * Marks a module as ready to be ran when $(document).ready() is reached, which deletes it
     * from the list of preloaded modules, and moves it to the list of loaded modules.
     *
     * @param Module object
     * @return void
     * @visibility <public>
     */
    T.moduleReady = function (m) {
        // Delete the module from the 'preload' list and add it to the 'loaded' list
        loadedModules[m.getName()] = m;
        delete modules[m.getName()];

        return;
    };

    /**
     * Returns the device size in the form of a DeviceSize value
     *
     * @return DeviceSize
     * @visibility <public>
     */
    T.getDeviceSize = function () {
        return deviceSize;
    };

    /**
     * Returns the device size in the form of a DeviceSize value
     *
     * @return DeviceSize
     * @visibility <public>
     */
    T.getClientWidth = function () {
        return (document.documentElement || document.body).clientWidth;
    };

    /**
     * Returns a boolean indicating if the device supports touch events or clicks
     *
     * @return boolean
     * @visibility <public>
     */
    T.getIsTouchDevice = function () {
        return isTouchDevice;
    };

    /**
     * Is IE7
     *
     */
    T.isIE7 = function (m) {
        return ($.browser.msie  && parseInt($.browser.version, 10) === 7);
    };

    /**
     * Is Kindle
     */
    T.isKindle = function() {
        return navigator.userAgent.toLowerCase().indexOf('silk') > -1;
    };

    /**
     * Is Android
     */
    T.isAndroid = function() {
        return !!navigator.userAgent.match(/Android/i);
    };

    /**
     * Is iOS device
     */
    T.isIOS = function() {
        return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/i);
    };

    /**
     * Is BlackBerry Curve
     */
    T.isBlackBerryCurve = function() {
        var ua = navigator.userAgent;

        if (ua.indexOf("BlackBerry") >= 0) {
            if (ua.indexOf("Version/") >= 0) {
                // BlackBerry 6 and 7
                var model = ua.match(/BlackBerry\s[0-9]*/);
                if (model) {
                    var model_number = model[0].match(/[0-9]+/);

                    if (model_number) model_number = model_number[0];

                    pos = ua.indexOf("Version/") + 8;
                    os_version = ua.substring(pos, pos + 3);

                    if (os_version === '6.0' && model_number === '9300') {
                        return true;
                    }
                }
            }
        }

        return false;
    }

    /**
     * Less than IE9
     *
     */
    T.isLessThanIE9 = function (m) {
        return ($.browser.msie  && parseInt($.browser.version, 10) < 9);
    };

    $(document).ready(T.init);

    return T;

})(jQuery, Modernizr || null);
/*C://xampp//htdocs//Televisa//\example\js\Televisa.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\example\js\transit.js*/

 /* ******************************************************* */ 
 /*!
 * jQuery Transit - CSS3 transitions and transformations
 * Copyright(c) 2011 Rico Sta. Cruz <rico@ricostacruz.com>
 * MIT Licensed.
 *
 * http://ricostacruz.com/jquery.transit
 * http://github.com/rstacruz/jquery.transit
 */
(function(d){function k(a){var b=["Moz","Webkit","O","ms"],c=a.charAt(0).toUpperCase()+a.substr(1);if(a in i.style)return a;for(a=0;a<b.length;++a){var d=b[a]+c;if(d in i.style)return d}}function j(a){"string"===typeof a&&this.parse(a);return this}function p(a,b,c){!0===b?a.queue(c):b?a.queue(b,c):c()}function m(a){var b=[];d.each(a,function(a){a=d.camelCase(a);a=d.transit.propertyMap[a]||a;a=r(a);-1===d.inArray(a,b)&&b.push(a)});return b}function q(a,b,c,e){a=m(a);d.cssEase[c]&&(c=d.cssEase[c]);
var h=""+n(b)+" "+c;0<parseInt(e,10)&&(h+=" "+n(e));var f=[];d.each(a,function(a,b){f.push(b+" "+h)});return f.join(", ")}function f(a,b){b||(d.cssNumber[a]=!0);d.transit.propertyMap[a]=e.transform;d.cssHooks[a]={get:function(b){return(d(b).css("transform")||new j).get(a)},set:function(b,e){var h=d(b).css("transform")||new j;h.setFromString(a,e);d(b).css({transform:h})}}}function r(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function g(a,b){return"string"===typeof a&&!a.match(/^[\-0-9\.]+$/)?
a:""+a+b}function n(a){d.fx.speeds[a]&&(a=d.fx.speeds[a]);return g(a,"ms")}d.transit={version:"0.1.3",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var i=document.createElement("div"),e={},s=-1<navigator.userAgent.toLowerCase().indexOf("chrome");e.transition=k("transition");e.transitionDelay=k("transitionDelay");e.transform=k("transform");
e.transformOrigin=k("transformOrigin");i.style[e.transform]="";i.style[e.transform]="rotateY(90deg)";e.transform3d=""!==i.style[e.transform];d.extend(d.support,e);var o=e.transitionEnd={MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"}[e.transition]||null,i=null;d.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)"};d.cssHooks.transform={get:function(a){return d(a).data("transform")},
set:function(a,b){var c=b;c instanceof j||(c=new j(c));a.style[e.transform]="WebkitTransform"===e.transform&&!s?c.toString(!0):c.toString();d(a).data("transform",c)}};d.cssHooks.transformOrigin={get:function(a){return a.style[e.transformOrigin]},set:function(a,b){a.style[e.transformOrigin]=b}};d.cssHooks.transition={get:function(a){return a.style[e.transition]},set:function(a,b){a.style[e.transition]=b}};f("scale");f("translate");f("rotate");f("rotateX");f("rotateY");f("rotate3d");f("perspective");
f("skewX");f("skewY");f("x",!0);f("y",!0);j.prototype={setFromString:function(a,b){var c="string"===typeof b?b.split(","):b.constructor===Array?b:[b];c.unshift(a);j.prototype.set.apply(this,c)},set:function(a){var b=Array.prototype.slice.apply(arguments,[1]);this.setter[a]?this.setter[a].apply(this,b):this[a]=b.join(",")},get:function(a){return this.getter[a]?this.getter[a].apply(this):this[a]||0},setter:{rotate:function(a){this.rotate=g(a,"deg")},rotateX:function(a){this.rotateX=g(a,"deg")},rotateY:function(a){this.rotateY=
g(a,"deg")},scale:function(a,b){void 0===b&&(b=a);this.scale=a+","+b},skewX:function(a){this.skewX=g(a,"deg")},skewY:function(a){this.skewY=g(a,"deg")},perspective:function(a){this.perspective=g(a,"px")},x:function(a){this.set("translate",a,null)},y:function(a){this.set("translate",null,a)},translate:function(a,b){void 0===this._translateX&&(this._translateX=0);void 0===this._translateY&&(this._translateY=0);null!==a&&(this._translateX=g(a,"px"));null!==b&&(this._translateY=g(b,"px"));this.translate=
this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var a=(this.scale||"1,1").split(",");a[0]&&(a[0]=parseFloat(a[0]));a[1]&&(a[1]=parseFloat(a[1]));return a[0]===a[1]?a[0]:a},rotate3d:function(){for(var a=(this.rotate3d||"0,0,0,0deg").split(","),b=0;3>=b;++b)a[b]&&(a[b]=parseFloat(a[b]));a[3]&&(a[3]=g(a[3],"deg"));return a}},parse:function(a){var b=this;a.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(a,d,
e){b.setFromString(d,e)})},toString:function(a){var b=[],c;for(c in this)if(this.hasOwnProperty(c)&&(e.transform3d||!("rotateX"===c||"rotateY"===c||"perspective"===c||"transformOrigin"===c)))"_"!==c[0]&&(a&&"scale"===c?b.push(c+"3d("+this[c]+",1)"):a&&"translate"===c?b.push(c+"3d("+this[c]+",0)"):b.push(c+"("+this[c]+")"));return b.join(" ")}};d.fn.transition=d.fn.transit=function(a,b,c,f){var h=this,g=0,i=!0;"function"===typeof b&&(f=b,b=void 0);"function"===typeof c&&(f=c,c=void 0);"undefined"!==
typeof a.easing&&(c=a.easing,delete a.easing);"undefined"!==typeof a.duration&&(b=a.duration,delete a.duration);"undefined"!==typeof a.complete&&(f=a.complete,delete a.complete);"undefined"!==typeof a.queue&&(i=a.queue,delete a.queue);"undefined"!==typeof a.delay&&(g=a.delay,delete a.delay);"undefined"===typeof b&&(b=d.fx.speeds._default);"undefined"===typeof c&&(c=d.cssEase._default);var b=n(b),j=q(a,b,c,g),l=d.transit.enabled&&e.transition?parseInt(b,10)+parseInt(g,10):0;if(0===l)return p(h,i,function(b){h.css(a);
f&&f.apply(h);b&&b()}),h;var k={},m=function(b){var c=false,g=function(){c&&h.unbind(o,g);l>0&&h.each(function(){this.style[e.transition]=k[this]||null});typeof f==="function"&&f.apply(h);typeof b==="function"&&b()};if(l>0&&o&&d.transit.useTransitionEnd){c=true;h.bind(o,g)}else window.setTimeout(g,l);h.each(function(){l>0&&(this.style[e.transition]=j);d(this).css(a)})};p(h,i,function(a){var b=0;e.transition==="MozTransition"&&b<25&&(b=25);window.setTimeout(function(){m(a)},b)});return this};d.transit.getTransitionValue=
q})(jQuery);/*C://xampp//htdocs//Televisa//\example\js\transit.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\img_fotogalfull_01\js\img_fotogalfull_01.js*/

 /* ******************************************************* */ 
 var delaySecs = 3; // Delay entre cambio y cambio de imagenes en el autoplay
var intervalID;
var  totalLis; // Numero total de li's del carrusel 1

$(document).ready(function() {
	
	// Ponemos el texto del overlay Desktop en el Overlay del mobile
	$('.img_fotogalfull_01 .overlay_mobile p').text( $('.img_fotogalfull_01 .overlay p').text() );
	
	// Click en la imagen de la galeria
	$('.img_fotogalfull_01 .carrusel1_img').click( function (){
		
		// Quitamos el timer del autoplay
		//alert(intervalID);
		clearInterval(intervalID);
		
		// reseteamos los botones
		$('#videobtn').removeClass('stop');
		$('#videobtn').addClass('play');
		
		clickGaleria(this);
		
	});
	
	// Ponemos las ligas de compartir
	var obj = $('.img_fotogalfull_01 #firstImg');
	setShareURL(obj);
	
	// click en el boton de Play o pausa
	$('#videobtn').click( function (){	
		play();				
	});
	
	
	
	// Sacamos el total de los li's para saber cuando hacer scroll
	totalLis = $('.img_fotogalfull_01 #carrusel2_ul li').length;
	
	
	
	var anchoUL_carrusel;
	
	if($(window).width() > 590){
			
		anchoUL_carrusel = $('.img_fotogalfull_01 #carrusel2 #carrusel2_ul').width();
		//alert(anchoUL_carrusel);
	}
	
	$(window).resize(function() {
		//alert(ancho);
		if($(window).width() < 590){
			
			$('.img_fotogalfull_01 #carrusel2 #carrusel2_ul').css('width','auto');
		}
		else{
			$('.img_fotogalfull_01 #carrusel2 #carrusel2_ul').css('width', anchoUL_carrusel);
		}
		
		
		// Ajustamos el tamaño del carrusel para respetar la col derecha
		ajustarTamanoCarrusel();
		
	});
	
	ajustarTamanoCarrusel();

});


// funcion que encuentra la siguiente imagen a hacer click tomando en cuenta la que está YA seleccionada
function findNextImgGallery(){
	
	
	
	// Buscamos la siguiente imagen
	var obj = $('.img_fotogalfull_01 .carrusel1_img  img.img_galry_01_selected').closest('li').next().find('.carrusel1_img');
	
	if( obj.is("a") ){
		
		clickGaleria(obj);
	}
	else{
		// Animamos el carrusel al inicio
		$('#division_dotted').animate({
				'scrollLeft': 0
		});
		
		var obj = $('.img_fotogalfull_01 #firstImg');
		clickGaleria(obj);
	}
	
	
	//alert($(obj).attr('id'));
}


// Funcion que simula un "click" en una imagen determinada de la galeria
function clickGaleria(obj){
	
	// si esta en autoplay paramos el timer para esperar a que cargue la nueva imagen
	if( $('#videobtn').hasClass('stop') ){
		clearInterval(intervalID);			
	}
	
	var imagen = $(obj).attr('img');
	var decription = $(obj).attr('title');
	
	
	//$(obj).parents('.img_fotogalfull_01').find('#img_galry_01_IMG').attr('src', imagen);
	//$(".img_fotogalfull_01 #img_fotogalfull_01_left #imgContainer").height( $(".img_fotogalfull_01 #img_galry_01_IMG").height() + 5 );
	
	// quitamos la imagen
	//$(".img_fotogalfull_01 #img_galry_01_IMG").remove();
	//$(".img_fotogalfull_01 #img_galry_01_IMG").attr("src",'');
	
    
	// Creamos una al vuelo
	/*var img = new Image();
	img.src = imagen;
	img.id = 'img_galry_01_IMG';
	img.onload = function() {*/
	
	$(".img_fotogalfull_01 #img_galry_01_IMG").attr("src",imagen).ready(function(){
		
		//alert('ya');
		// Agregamos la imagen
		//$(".img_fotogalfull_01 #img_fotogalfull_01_left #imgContainer").append(img);
		
		// YA QUE CARGÓ LA IMAGEN... ENTONCES... 
		
		// Ponemos el texto del overlay Desktop en el Overlay 
		$('.img_fotogalfull_01 .overlay_mobile p').text( decription );
		$('.img_fotogalfull_01 .overlay p').text( decription );
		
		//alert('q');
		// quitamos el borde
		$( '.img_fotogalfull_01 .carrusel1_img img' ).removeClass('img_galry_01_selected');
		
		
		// ponemos borde al anchor que le dieron click
		$(obj).children('img').addClass('img_galry_01_selected');
		
		// sacamos el NUMERO DE li que estara activo para saber si hacemos SCROLL en el carrusel1
		var selectedIndex = $('.img_fotogalfull_01 .carrusel1_img  img.img_galry_01_selected').closest('li').index() + 1;
		
		// Si esta corriendo el autoplay
		if ( $('#videobtn').hasClass('stop')  ){
			
			if ($.browser.msie && parseInt($.browser.version, 10) <= 7){
				var anchoVentna = document.body.offsetWidth;
				//alert($.width());
				//alert(document.body.offsetWidth);
			}
			else{
				var anchoVentna =  $(window).width();
			}
			
			if ( anchoVentna < 630 && ( selectedIndex == 6 || selectedIndex == 12 || selectedIndex == 18 || selectedIndex == 24 || selectedIndex == 30) ){
			
				//alert(selectedIndex);
				$('.img_fotogalfull_01 #carrusel1 #rightC1').click();
				
			}
			else if ( anchoVentna > 630 && ( selectedIndex == 10 || selectedIndex == 20 || selectedIndex == 30 || selectedIndex == 40 || selectedIndex == 50) ){
				$('.img_fotogalfull_01 #carrusel1 #rightC1').click();
			}
			
		}
	});
	
	// si esta en autoplay
	if( $('#videobtn').hasClass('stop') ){
		
		intervalID = window.setInterval("findNextImgGallery()", (delaySecs * 1000));
		
	}
	
	// ponemos los links de compartir
	setShareURL(obj);
	
}


function setShareURL(obj){
	
	var photo_id = $(obj).attr('idImg');
	
	// cambiamos el link de compartir de fb, tw y pn
	var shareUrl = window.location.href.substr(0, window.location.href.indexOf('#'));
	shareUrl = shareUrl + '#ph='+photo_id;
	
	var shareUrlBase = "http://www.televisa.com";
	
	//$('.img_galry_01 #lnk_pinterest').attr('href', $('.img_galry_01 #hidden_pinterest').attr('href')+shareUrlBase+shareUrl);
	$('.img_fotogalfull_01 #lnk_twitter').attr('href', 'https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Ftelevisa.com&via='+shareUrlBase+'/?u='+shareUrl);
	$('.img_fotogalfull_01 #lnk_facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u='+shareUrlBase+shareUrl);
}


function ajustarTamanoCarrusel(){
	
	
	if ($.browser.msie && parseInt($.browser.version, 10) <= 7){
		var anchoVentna = document.body.offsetWidth;
		//alert($.width());
		//alert(document.body.offsetWidth);
	}
	else{
		var anchoVentna =  $(window).width();
	}
	
	
	
	// Ajustamos el tamaño dela col izq para respetar la col derecha
	
	// Tablet
	if( anchoVentna  <= 960)
		$('.img_fotogalfull_01 #img_fotogalfull_01_left').width( '100%' );
	// Desktop
	else
		$('.img_fotogalfull_01 #img_fotogalfull_01_left').width( anchoVentna - 360 );
		
		
	
	//Ajustamos el alto del a col derecha
	
	if( $('#img_galry_01_IMG').height() > 270)
		$('.img_fotogalfull_01 .txt1').height( $('#img_galry_01_IMG').height() - 100 );
		
	if( anchoVentna < 960)
		$('.img_fotogalfull_01 .txt1').height( 'auto' );
		
	
	/*Ajustamos el ancho del overlay*/
	if( anchoVentna <= 620 )
		$('.img_fotogalfull_01 .overlay').width( $('#img_galry_01_IMG').width() -30);
	else
		$('.img_fotogalfull_01 .overlay').width( $('#img_galry_01_IMG').width() - 102 );
	
}

// BTN FWD (mobile)
function fwd(){

	findNextImgGallery();
	
}

// Btn rwd (mobile)
function rwd(){

	var obj = $('.img_fotogalfull_01 #carrusel1_ul').find('.img_galry_01_selected').closest('li').prev().find('a');
	//alert( $(obj).attr('img') );
	
	if( obj.is("a") ){
		clickGaleria(obj);
	}
	else{
		
		//$('.img_fotogalfull_01 #firstImg').trigger('click');
		var obj = $('.img_fotogalfull_01 #firstImg');
		clickGaleria(obj);
		
		// Animamos el carrusel al inicio
		$('#division_dotted').animate({
				'scrollLeft': 0
		});
	}
	
	/*$('.img_fotogalfull_01 #carrusel1_ul').find('.img_galry_01_selected').removeClass('img_galry_01_selected');
	
	
	$('.img_fotogalfull_01').find('#img_galry_01_IMG').attr('src', '');
	$('.img_fotogalfull_01').find('#img_galry_01_IMG').attr('src', $(obj).attr('img'));
	$(obj).find('img').addClass('img_galry_01_selected');*/	
}

function play(){
	
	
	// si esta corriendo el autoplay
	if($('#videobtn').hasClass('stop')){
		
		$('.img_fotogalfull_01 .displayControls #pause').hide();
		$('.img_fotogalfull_01 .displayControls #play').show();
		
		//alert(intervalID);
		$('#videobtn').removeClass('stop');
		$('#videobtn').addClass('play');
		clearInterval(intervalID);
	}
	else{
		
		// Version mobile
		$('.img_fotogalfull_01 .displayControls #play').hide();
		$('.img_fotogalfull_01 .displayControls #pause').show();
		
		
		// version desktop
		$('#videobtn').removeClass('play');
		$('#videobtn').addClass('stop');
		
		
		intervalID = window.setInterval("findNextImgGallery()", (delaySecs * 1000));
	}
}/*C://xampp//htdocs//Televisa//\img_fotogalfull_01\js\img_fotogalfull_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\img_fotogalfull_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\img_fotogalfull_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\img_galry_01\js\img_galry_01.js*/

 /* ******************************************************* */ 
 img_galry_01_js = new Object();

img_galry_01_js.delaySecs = 3; // Delay entre cambio y cambio de imagenes en el autoplay
img_galry_01_js.intervalID;
img_galry_01_js.totalLis; // Numero total de li's del carrusel 1
img_galry_01_js.jsonurl =  "../json/img_galry_01.php?g="; // Ajax Json URL
img_galry_01_js.anchoUL_carrusel;
img_galry_01_js.idGallery;

var btnPlay;


//head.ready(function() {
$(document).ready(function() {	
	
    // Si entran en movil se quita el ancho fijo que pone el carrusel al 'ul'
    $(window).load(function() {
        if($(window).width() <= 590){			
            $('.img_galry_01 #carrusel2 #carrusel2_ul').css('width', $(window).width());			
        }
        else{
            img_galry_01_js.anchoUL_carrusel = $('.img_galry_01 #carrusel2 #carrusel2_ul').width();
        //alert(img_galry_01_js.anchoUL_carrusel);
        }
    });	
	
	
    // Bind del click en el boton de Play o pausa
    $('.play').bind('click', function(event) {
        event.preventDefault();		
		
        btnPlay = $(this);		
        // si esta corriendo el autoplay
        if($(this).hasClass('stop')){
            //alert(img_galry_01_js.intervalID);
            $(this).removeClass('stop');
            $(this).addClass('play');
            clearInterval(img_galry_01_js.intervalID);
        }
        else{
            $(this).removeClass('play');
            $(this).addClass('stop');
            //$('.img_galry_01 #firstImg').trigger('click');
            img_galry_01_js.intervalID = window.setInterval( function(){
                findNextImgGallery(btnPlay)
            }, (img_galry_01_js.delaySecs * 1000));
        }				
    });	
	
	
    // Bind del carrsuel 2 con la galeria escogida
    $('.img_galry_01 .galleryLink').click( function (event){
				
        // Si es version tablet o desktop
        if($(window).width() > 590){			
            event.preventDefault();			
            img_galry_01_js.idGallery = $(this).attr('galleryid');
					
            // Quitamos el estilo y agregamos el estilo "sellecionado" a la imagen que le dieron click
            $(this).parents('.img_galry_01').find('.galleryLink').each( function (){				
                $(this).find('div.selectedGallery').removeClass('selectedGallery');
            });	
			
            $(this).find('.iconGallery').addClass('selectedGallery');			
            fillCarousel(img_galry_01_js.idGallery, '',  $(this).parents('.img_galry_01'));
        }
		
    });		
    // Boton del VER MAS (Movil)
    $('.img_galry_01 #img_galry_01_btnverMas').click( function (){
		
        $(this).parents('.img_galry_01').find('#carrusel2 #carrusel2_ul li').show();
        $(this).hide();
    });
	
	
	
    // Sacamos el total de los li's para saber cuando hacer scroll
    img_galry_01_js.totalLis = $('.img_galry_01 #carrusel2_ul li').length;

	
    $(window).resize(function() {
        //alert(ancho);
        if($(window).width() < 590){
			
            $('.img_galry_01 #carrusel2 #carrusel2_ul').css('width','auto');
        }
        else{
            $('.img_galry_01 #carrusel2 #carrusel2_ul').css('width', img_galry_01_js.anchoUL_carrusel);
        }
    });
	
	
	
	
	
    ////////////////////////// Se llenan los li's del carrusel UNO /////////////////////////////////
	
	
	
    var hash = window.location.hash;
	
    // obtenemos el photoID del hash
    if(hash.indexOf('ph=') > -1){
        var index = hash.indexOf('ph=');
		
        var photoid = hash.substring(index+3, index+4);
    //alert(photoid);
    }
	
	
    // obtenemos el galleryID del hash
    if(hash.indexOf('g=') > -1){
        var index = hash.indexOf('g=');
        //alert(index);
        img_galry_01_js.idGallery = hash.substring(index+2, index+3);
    //alert(img_galry_01_js.idGallery);
    }
    else{
        // Sino viene ninguna galeria por el hash obtnemos el id del PRIMER elemento del CARRUSEL 2
        img_galry_01_js.idGallery = $('.img_galry_01 #carrusel2_ul .galleryLink:first').attr('galleryid');
		
    }
	
    if (typeof( $('img_galry_01') ) != "undefined")
        fillCarousel(img_galry_01_js.idGallery, photoid ,'');

});


// funcion que encuentra la siguiente imagen a hacer click tomando en cuenta la que está YA seleccionada
function findNextImgGallery(btnPlay){
	
	
    //$(btnPlay).css('border', '1px solid red');
	
    // Buscamos la siguiente imagen
    //var obj = $('.img_galry_01 .carrusel1_img  img.img_galry_01_selected').closest('li').next().find('.carrusel1_img');
    var obj = $(btnPlay).parents('.img_galry_01').find('.carrusel1_img  img.img_galry_01_selected').closest('li').next().find('.carrusel1_img');
	
    if( obj.is("a") ){
        clickGaleria(obj);
    }
    else{
		
        //$('.img_galry_01 #firstImg').trigger('click');
        var obj = $(btnPlay).parents('.img_galry_01').find('#firstImg');
        clickGaleria(obj);
		
        resetCarrusel1stImg();
    }
	
	
//alert($(obj).attr('id'));
}



function resetCarrusel1stImg(){
	
    // Animamos el carrusel al inicio
    $('#division_dotted').animate({
        'scrollLeft': 0
    });
}


// Funcion que simula un "click" en una imagen determinada de la galeria
function clickGaleria(obj){
	
    // Quitamos la imagen grande
    $(obj).parents('.img_galry_01').find('#img_galry_01_IMG').attr('src', '');
	
	
    var imagen = $(obj).attr('img');
    $(obj).parents('.img_galry_01').find('#img_galry_01_IMG').attr('src', imagen);	
	
    // quitamos el borde
    $(obj).parents('.img_galry_01').find('.carrusel1_img img' ).each(function( index ) {
        $(this).removeClass('img_galry_01_selected');
    });
	
    // ponemos borde al anchor que le dieron click
    $(obj).children('img').addClass('img_galry_01_selected');
	
    // Cambiamos el texto del Overlay
    setOverlayText($(obj).attr('title'));
	
    // sacamos el NUMERO DE li que estara activo para saber si hacemos SCROLL en el carrusel1
    var selectedIndex = $(obj).parents('.img_galry_01').find('.carrusel1_img  img.img_galry_01_selected').closest('li').index() + 1;
    if(selectedIndex == 7 || selectedIndex == 14 || selectedIndex == 21 || selectedIndex == 28 || selectedIndex == 35){
		
        var rightArrow = $('.img_galry_01 #carrusel1 #rightC1');
        //$(rightArrow).trigger('Pointer.DOWN');
        $(rightArrow).mousedown();
		
    }
	
    var photo_id = $(obj).children('img').attr('id');
	
    // cambiamos el link de compartir de fb, tw y pn
    var shareUrl = window.location.href.substr(0, window.location.href.indexOf('#'));
    shareUrl = shareUrl + '#g='+img_galry_01_js.idGallery+'&ph='+photo_id;
	
    var shareUrlBase = "http://www.televisa.com";
	
    //$('.img_galry_01 #lnk_pinterest').attr('href', $('.img_galry_01 #hidden_pinterest').attr('href')+shareUrlBase+shareUrl);
    $('.img_galry_01 #lnk_twitter').attr('href', 'https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Ftelevisa.com&via='+shareUrlBase+'/?u='+shareUrl);
    $('.img_galry_01 #lnk_facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u='+shareUrlBase+shareUrl);
	
}



// funcion que llena el primer carrusel con un id de galeria 
function fillCarousel(idGallery, idSelPhoto, galleryObj){
	
    //alert(img_galry_01_js.idGallery);
	
	if($.isEmptyObject(galleryObj))
		var galleryObj = $('.img_galry_01');
	
    // quitamos todos los li's del carrusel
    $(galleryObj).find('#carrusel1_ul').children().remove();
	
    // Quitamos la imagen grande
    $(galleryObj).find('#img_galry_01_IMG').attr('src', '');
	
	
	
    var jsonRequest  = img_galry_01_js.jsonurl + idGallery
	
	
    // Hacemos la consulta json
    $.getJSON( jsonRequest, function(data) {
		
        var items = [];
        var contador = 1;
        var primeraimg = '';
		
        // Recorremos la info por CADA foto regresada
        $.each(data.photos, function(id, photo) {
			
            var selected = "";
			
            // Ponmos la imagen grande
            $(galleryObj).find('#img_galry_01_IMG').attr('src', photo.image);
			
            // ponemos la clase a la 1era imagen
            if(contador == 1)
                primeraimg = 'firstImg';
            else
                primeraimg = '';
			
            // ponemos el titulo del imagen en el recuadro blanco
            setOverlayText(photo.title);
			
			
            // Guardamos el id de la photo seleccionada VIA HASH (sino abajo seleccionaremos la 1era imagen de la galeria selccionada/default)
            if(parseInt(idSelPhoto) > 0 && idSelPhoto == photo.id){

                selected = 'img_galry_01_selected';
            }
			
				
            $(galleryObj).find('#carrusel1_ul').append('<li><a href="javascript: void(0);" img="'+photo.image+'" title="'+photo.title+'" class="carrusel1_img" id="'+primeraimg+'"><img src="'+photo.thumb+'" alt="'+photo.title+'" class="'+selected+'" id="'+photo.id+'"></a></li>');
            //alert(photo.thumb);
	
            contador++;
			
        });
		
		
		
        // agregamos el comportamiento del carrusel a los elementos agregados anteriormente
        doCarruselTelevisa('.img_galry_01 #division_dotted', jQuery, Televisa);
		
	
        // Agregamos el evento click a los elementos anteriormente generados al vuelo
        $(galleryObj).find('.carrusel1_img').live('click', function (){
			
			
            // Quitamos el timer del autoplay
            //alert(img_galry_01_js.intervalID);
            clearInterval(img_galry_01_js.intervalID);
			
            // reseteamos los botones
            $('#videobtn').removeClass('stop');
            $('#videobtn').addClass('play');
			
            clickGaleria(this);
            setOverlayText($(this).attr('title'));
			
        });
		
        // simulamos el click de la imagen correspondiente, ya sea la default o la escogida via hash
        if(parseInt(idSelPhoto) > 0){
			
            var obj = $(galleryObj).find('.carrusel1_img  img.img_galry_01_selected').parent();
        }
        else{
            var obj = $(galleryObj).find('#firstImg');
        }
		
        clickGaleria(obj);
			
    //resetCarrusel1stImg();
	
    });
}



function setOverlayText(texto){
    $(btnPlay).parents('.img_galry_01').find('#imageDescription').text(texto);
}





function doCarruselTelevisa (id, $, T) {

    var $m = $(id),
    animationDelay = 500;

    $m.each(function() {
				
        var $items = $(this).find('ul li'),
        padding = ($(this).parent().hasClass('type1c')) ? 41 : 0,
        Pointer = {
            UP: (T.getIsTouchDevice()) ? 'touchend' : 'mouseup',
            DOWN: (T.getIsTouchDevice()) ? 'touchstart' : 'mousedown'
        },
        $parent = $(this);

        $(this).find('ul').width(($items.outerWidth(true) + padding) * $items.length);

        if (/Android|iPhone|iPod|iPad/.test(navigator.userAgent) && // If it's an iPad, iPod or iPhone
            !(/OS [2-4]_\d(_\d)? like Mac OS X/i.test(navigator.userAgent))) { // And the version of the OS is bigger than 4.x...
            $(this).addClass('iOS');
        } else {
            // Touch devices (non-iOS or iOS < 5)
            var isWinPhone = /Windows Phone/.test(navigator.userAgent);

            if (T.getIsTouchDevice() && !T.isBlackBerryCurve()) {

                // Hide the arrows if it's not carouseltype1b
                if (!$(this).parent().hasClass('type1b')) {
                    $(this).parent().find('div:first-child ul').hide();
                }

                $(this).bind('touchstart', function(e) {
                    var clientX = e.originalEvent.changedTouches[0].clientX;

                    $(this).attr('startX', clientX);
                    $(this).attr('down', true);
                    $(this).attr('scrollLeft', $(this).scrollLeft());
                });

                $(this).bind('touchend', function(e) {
                    if ($(this).attr('active') === 'true') {
                        e.preventDefault();
                        e.stopPropagation();
                    }

                    $(this).attr('active', false);
                    $(this).attr('down', false);
                });

                $(this).bind('touchmove', function(e) {
                    var clientX = e.originalEvent.changedTouches[0].clientX,
                    sx = $(this).attr('startX') >> 0,
                    ex = clientX;

                    if (Math.abs(sx - ex) > 10) {
                        $(this).attr('active', true);
                    }

                    if ($(this).attr('active') === 'true') {
                        e.preventDefault();

                        $(this).scrollLeft(($(this).attr('scrollLeft') >> 0) + (sx - ex));
                    }

                    return false;
                });
            } else {
                // Force the arrows to show up
                $(this).parent().addClass('showArrows');
            }
        }

        // Support the click event on arrows
        $parent.parent().find('a.left').bind(Pointer.DOWN, function() {
            $parent.animate({
                'scrollLeft': $parent.scrollLeft() - $parent.width()
            }, animationDelay);
        });

        $parent.parent().find('a.right').bind(Pointer.DOWN, function() {
            $parent.animate({
                'scrollLeft': $parent.scrollLeft() + $parent.width()
            }, animationDelay);
        });
    });

}/*C://xampp//htdocs//Televisa//\img_galry_01\js\img_galry_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\mix_3artspag_01\js\mix_3artspag_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {

	$('.mix_3artspag_01 #mix_3artspag_01_vermas').click(function(event){
		
		event.preventDefault();
		$('.mix_3artspag_01 .items ul li').show();
		$('.mix_3artspag_01 #mix_3artspag_01_vermas').hide();
	});
	
});/*C://xampp//htdocs//Televisa//\mix_3artspag_01\js\mix_3artspag_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\mix_3artspag_02\js\mix_3artspag_02.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {
	
	$('.mix_3artspag_02 #mix_3artspag_02_vermas').click(function (event){
		
		event.preventDefault();
		$('.mix_3artspag_02 .items ul li').show();
		$('.mix_3artspag_02 #mix_3artspag_02_vermas').hide();
	});

});/*C://xampp//htdocs//Televisa//\mix_3artspag_02\js\mix_3artspag_02.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\mix_4artspag_01\js\mix_4artspag_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {

	$('.mix_4artspag_01 #mix_4artspag_01_vermas').click(function(event){
		
		event.preventDefault();
		$('.mix_4artspag_01 .items ul li').show();
		$('.mix_4artspag_01 #mix_4artspag_01_vermas').hide();
	});
	
});/*C://xampp//htdocs//Televisa//\mix_4artspag_01\js\mix_4artspag_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\mix_6x2arts_01\js\mix_6x2arts_01.js*/

 /* ******************************************************* */ 
 (function() {
    $(document).ready(function() {
        $('.mix_6x2arts_01_show').click(function(e){
            e.preventDefault();
            $(this).next(".selected").removeClass("selected");
            $(this).addClass("selected");
            var obj2 = $('div.mix_6x2arts_01 div.wdg_carousb  div.title ul li a.mix_6x2arts_01_show.selected').closest('div').parent().next(".nav_paginator_01");
            obj2.addClass("selected");
            /*var obj = $('.img_fotogalfull_01 .carrusel1_img  img.img_galry_01_selected').closest('li').next().find('.carrusel1_img');*/
            var obj = $('div.mix_6x2arts_01 div.wdg_carousb  div.title ul li a.mix_6x2arts_01_show.selected').closest('div').next();
            obj.show();
            obj.hide();

            
        });
        
        $('.mix_6x2arts_01_hide').click(function(e){
            e.preventDefault();
            $(this).addClass("selected");
            $(this).prev(".selected").removeClass("selected");
            var obj2 = $('div.mix_6x2arts_01 div.wdg_carousb  div.title ul li a.mix_6x2arts_01_hide.selected').closest('div').parent().next(".nav_paginator_01");
            obj2.removeClass("selected");
            var obj = $('div.mix_6x2arts_01 div.wdg_carousb  div.title ul li a.mix_6x2arts_01_hide.selected').closest('div').next();
            obj.hide();
            obj.show();

        });
    });
}());/*C://xampp//htdocs//Televisa//\mix_6x2arts_01\js\mix_6x2arts_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\mix_carru_01\js\mix_carru_01.js*/

 /* ******************************************************* */ 
 //(function($, T){
$(document).ready(document).ready(function(){ 
    
    
    if(isMobile.any()){
        //Funcionalidad Swipe 
        $(".mix_carru_01 .galleryImages ul li.active").swipe( {  
            swipe:function(event, direction, distance, duration, fingerCount) {
            
                if(direction == "left"){
                    $(".mix_carru_01 ul.galleryThumbs li.active").next().trigger("click"); 
                    event.stopPropagation(); 
                } 
                else if(direction == "right"){
                    $(".mix_carru_01 ul.galleryThumbs li.active").prev().trigger("click");
                }  
                else if(direction == "up"){
                    return;
                } 
                else if(direction == "down"){
                    return;
                }
                else if(direction == "null"){
                    return;
                }
                else{
                    return;
                } 
            },
            triggerOnTouchEnd:false,
            //Default is 75px, set to 0 for demo so any distance triggers swipe
            threshold:0 
        }); 
    }
    
    $(".mix_carru_01 div.title a.right").click(function(e){
 
        $(".mix_carru_01 ul.galleryThumbs li.active").next().trigger("click");
        e.stopPropagation(); 
    });

    $(".mix_carru_01 div.title a.left").click(function(e){
        
        $(".mix_carru_01 ul.galleryThumbs li.active").prev().trigger("click"); 
        e.stopPropagation(); 
    });

    $(".mix_carru_01 ul.galleryThumbs li").click(function(e){
        var image        = $(this).attr("image");
        var seccion      = $(this).attr("seccion");
        var urlSeccion   = $(this).attr("urlSeccion");
        var title        = $(this).attr("title");
        var urlTitle     = $(this).attr("urlTitle");
       
        $(this).parent().find("li").removeClass();
        $(this).addClass("active");
       
        $(".mix_carru_01 .galleryImages a").attr("href",urlTitle);
        $(".mix_carru_01 .galleryImages a").attr("title",title);
        $(".mix_carru_01 .galleryImages a img").remove();
       
        var img = new Image();
        img.src = image;
        img.onload = function() {
            $(".mix_carru_01 .galleryImages a").append(img);
        }
       
        $(".mix_carru_01 .galleryImages img").attr("src",image);
       
        $(".mix_carru_01 .itemSection a").attr("href",urlSeccion);
        $(".mix_carru_01 .itemSection a").attr("title",seccion);
        $(".mix_carru_01 .itemSection a").text(seccion);
       
        $(".mix_carru_01 .itemCaption a").attr("href",urlTitle);
        $(".mix_carru_01 .itemCaption a").attr("title",title);
        $(".mix_carru_01 .itemCaption a").text(title);
       
        e.stopPropagation();
    });
      
});

var isMobile = {
    Android: function() {
        return navigator.userAgent.match(/Android/i);
    },
    BlackBerry: function() {
        return navigator.userAgent.match(/BlackBerry/i);
    },
    iOS: function() {
        return navigator.userAgent.match(/iPhone|iPad|iPod/i);
    },
    Opera: function() {
        return navigator.userAgent.match(/Opera Mini/i);
    },
    Windows: function() {
        return navigator.userAgent.match(/IEMobile/i);
    },
    any: function() {
        return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
    }
};

/*C://xampp//htdocs//Televisa//\mix_carru_01\js\mix_carru_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\nav_featured_01\js\nav_featured_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {
    var button = $(".nav_featured_01_menu");
    var selectedButton = $(".selected");
    button.bind("click", function(){
        toggleSelect(this);
    });
    function toggleSelect(pressedButton){
        if($(pressedButton).hasClass("selected") === false){
            selectedButton.removeClass("selected");
            $(pressedButton).addClass("selected");
            selectedButton = $(pressedButton);
        }
    }
});
    /*C://xampp//htdocs//Televisa//\nav_featured_01\js\nav_featured_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\str_notfound_01\js\str_notfound_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {

	$('.str_notfound_01 #s').click(function () {
		
		if($(this).val() == 'Realiza otra busqueda')
			$(this).val('');
	});
	
	$('.str_notfound_01 #s').change(function () {
		
		if($(this).val() == '')
			$(this).val('Realiza otra busqueda');
	});
	
	$('.str_notfound_01 #s').blur(function () {
		
		if($(this).val() == '')
			$(this).val('Realiza otra busqueda');
	});
	
});/*C://xampp//htdocs//Televisa//\str_notfound_01\js\str_notfound_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\str_notfound_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\str_notfound_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_4vids_01\js\vid_4vids_01.js*/

 /* ******************************************************* */ 
 


$(document).ready(function() {
	
	
(function(){
    
vid_4vids_01_player = new Object();
vid_4vids_01_player.width = 624; // Delay entre cambio y cambio de imagenes en el autoplay
vid_4vids_01_player.height = 378;
    
    // Si entran en movil se quita el ancho fijo que pone el carrusel al 'ul'
    $(window).load(function() {
            if($(window).width() <= 590){

                    $('.vid_4vids_01 .type1a .carruselContainer #carrusel').css('width', $(window).width());

            }
    });



    var anchoUL_carrusel;

    if($(window).width() > 620){

            anchoUL_carrusel = $('.vid_4vids_01 .type1a .carruselContainer #carrusel').width();
            //alert(anchoUL_carrusel);
    }



    $(window).resize(function() {
            //alert(ancho);
            if($(window).width() < 620){

                    $('.vid_4vids_01 .type1a .carruselContainer #carrusel').css('width','auto');

            }
            else{
                    $('.vid_4vids_01 .type1a .carruselContainer #carrusel').css('width', anchoUL_carrusel);
            }
    });

    // Boton del VER MAS (Movil)
    $('.vid_4vids_01 #vid_4vids_01_btnverMas').click( function (e){
            e.preventDefault();
            $('.vid_4vids_01 .type1a #carrusel li').show();
    });


    // Bind del carrsuel 2 con la galeria escogida
    $('.vid_4vids_01 .galleryLink').click( function (event){
            event.preventDefault();
            // Si es version tablet o desktop
            if($(window).width() > 620){


                    // Quitamos el estilo y agregamos el estilo "sellecionado" a la imagen que le dieron click
                    $('.vid_4vids_01 .galleryLink').each( function (){

                            $(this).find('div.selectedGallery').removeClass('selectedGallery');
                    });

                    $(this).find('.iconGallery').addClass('selectedGallery');
            }

    });



    // Click  del btn play
    $('.vid_4vids_01 #video_play, .vid_4vids_01 .galleryLink').click(function (e){
            e.preventDefault();
            changePlayVideo($(this));

    });
    
    
function setPlayerSize(){
	
	if ($.browser.msie && parseInt($.browser.version, 10) <= 7){
		var anchoVentna = document.body.offsetWidth;
		//alert( anchoVentna );
	}
	else{
		var anchoVentna =  $(window).width();
	}
	
	// Si el version movil obtenemos el alto y ancho de la imagen para adaptar el tamaño del player
	if( anchoVentna <= 590 ){
		
		// proporcion entre el ancho y alto fijos con el ancho variable
		var altoVentana = (anchoVentna * vid_4vids_01_player.height) / vid_4vids_01_player.width;
		
		$('.vid_4vids_01 #myExperience').width( anchoVentna );
		$('.vid_4vids_01 #myExperience').height( altoVentana );
		
		$('.vid_4vids_01 #contenedor').width( anchoVentna );
		$('.vid_4vids_01 #contenedor').height( altoVentana );
	}
	else{
		
		$('.vid_4vids_01 #myExperience').width( vid_4vids_01_player.width );
		$('.vid_4vids_01 #myExperience').height( vid_4vids_01_player.height );
		
		$('.vid_4vids_01 #contenedor').width( vid_4vids_01_player.width );
		$('.vid_4vids_01 #contenedor').height( vid_4vids_01_player.height );
		
	}
}


function changePlayVideo(btnPlay){
	
	
	
	
	if( typeof( modVP ) != "undefined"){
		
		if(modVP.isPlaying())
			modVP.stop();
		
		var player = new BCEsmasPlayer("myExperience",643082227001,"contenedor",params,options);
		player.removePlayer();
		player.addPlayer();
		openerSkin();
		
		modVP.play();
		//alert('play');
	}
	
	var imgContainer = $(btnPlay).parent().parent();
	$(btnPlay).css('border', '1px solid red');
		
	//$('.vid_4vids_01 #theaterContainer').hide('fast', function(){
		setPlayerSize();
                
		$(imgContainer).find('#theaterContainer').show();
		$(imgContainer).find('#img_stage_01_IMG').hide();
		$(btnPlay).hide();
		$(imgContainer).find('.overlay').hide();
	//});
}
    

})();
        


});



/*C://xampp//htdocs//Televisa//\vid_4vids_01\js\vid_4vids_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_4vids_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_4vids_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_4vids_02\js\vid_4vids_02.js*/

 /* ******************************************************* */ 
 


$(document).ready(function() {
	
	
    (function(){
    
        vid_4vids_01_player = new Object();
        vid_4vids_01_player.width = 624; // Delay entre cambio y cambio de imagenes en el autoplay
        vid_4vids_01_player.height = 378;
    
        // Si entran en movil se quita el ancho fijo que pone el carrusel al 'ul'
        $(window).load(function() {
            if($(window).width() <= 590){

                $('.vid_4vids_01 .type1a .carruselContainer #carrusel').css('width', $(window).width());

            }
        });



        var anchoUL_carrusel;

        if($(window).width() > 620){

            anchoUL_carrusel = $('.vid_4vids_01 .type1a .carruselContainer #carrusel').width();
        //alert(anchoUL_carrusel);
        }



        $(window).resize(function() {
            //alert(ancho);
            if($(window).width() < 620){

                $('.vid_4vids_01 .type1a .carruselContainer #carrusel').css('width','auto');

            }
            else{
                $('.vid_4vids_01 .type1a .carruselContainer #carrusel').css('width', anchoUL_carrusel);
            }
        });

        // Boton del VER MAS (Movil)
        $('.vid_4vids_02 #vid_4vids_02_btnverMas').click( function (e){
            e.preventDefault();
            $(this).hide();
            $('ul.segundaParte li.oculto, .hide').show();
        });
    
        $('.vid_4vids_02 #vid_4vids_02_btnOcultar').click( function (e){
            e.preventDefault();
            $(this).hide();
            $('ul.segundaParte li.oculto').hide(); 
            $('.vid_4vids_02 #vid_4vids_02_btnverMas').show();
        });


        // Bind del carrsuel 2 con la galeria escogida
        $('.vid_4vids_01 .galleryLink').click( function (event){
            event.preventDefault();
            // Si es version tablet o desktop
            if($(window).width() > 620){


                // Quitamos el estilo y agregamos el estilo "sellecionado" a la imagen que le dieron click
                $('.vid_4vids_01 .galleryLink').each( function (){

                    $(this).find('div.selectedGallery').removeClass('selectedGallery');
                });

                $(this).find('.iconGallery').addClass('selectedGallery');
            }

        });



        // Click  del btn play
        $('.vid_4vids_01 #video_play, .vid_4vids_01 .galleryLink').click(function (e){
            e.preventDefault();
            changePlayVideo($(this));

        });
    
    
        function setPlayerSize(){
	
            if ($.browser.msie && parseInt($.browser.version, 10) <= 7){
                var anchoVentna = document.body.offsetWidth;
            //alert( anchoVentna );
            }
            else{
                var anchoVentna =  $(window).width();
            }
	
            // Si el version movil obtenemos el alto y ancho de la imagen para adaptar el tamaño del player
            if( anchoVentna <= 590 ){
		
                // proporcion entre el ancho y alto fijos con el ancho variable
                var altoVentana = (anchoVentna * vid_4vids_01_player.height) / vid_4vids_01_player.width;
		
                $('.vid_4vids_01 #myExperience').width( anchoVentna );
                $('.vid_4vids_01 #myExperience').height( altoVentana );
		
                $('.vid_4vids_01 #contenedor').width( anchoVentna );
                $('.vid_4vids_01 #contenedor').height( altoVentana );
            }
            else{
		
                $('.vid_4vids_01 #myExperience').width( vid_4vids_01_player.width );
                $('.vid_4vids_01 #myExperience').height( vid_4vids_01_player.height );
		
                $('.vid_4vids_01 #contenedor').width( vid_4vids_01_player.width );
                $('.vid_4vids_01 #contenedor').height( vid_4vids_01_player.height );
		
            }
        }


        function changePlayVideo(btnPlay){
	
	
	
	
            if( typeof( modVP ) != "undefined"){
		
                if(modVP.isPlaying())
                    modVP.stop();
		
                var player = new BCEsmasPlayer("myExperience",643082227001,"contenedor",params,options);
                player.removePlayer();
                player.addPlayer();
                openerSkin();
		
                modVP.play();
            //alert('play');
            }
	
            var imgContainer = $(btnPlay).parent().parent();
            $(btnPlay).css('border', '1px solid red');
		
            //$('.vid_4vids_01 #theaterContainer').hide('fast', function(){
            setPlayerSize();
                
            $(imgContainer).find('#theaterContainer').show();
            $(imgContainer).find('#img_stage_01_IMG').hide();
            $(btnPlay).hide();
            $(imgContainer).find('.overlay').hide();
        //});
        }
    

    })();
        


});



/*C://xampp//htdocs//Televisa//\vid_4vids_02\js\vid_4vids_02.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_4vids_02\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_4vids_02\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_player_01\js\vid_player_01.js*/

 /* ******************************************************* */ 
 vid_player_01_player = new Object();

vid_player_01_player.width = 625; // Delay entre cambio y cambio de imagenes en el autoplay
vid_player_01_player.height = 380;

$(document).ready(function() {
	
	// Si existe el componente de video
	if($('.vid_player_01')){
		
		// Click  del btn play
		$('.vid_player_01 #videobtn').click(function (){
			
			$('.vid_player_01 #img_stage_01_IMG').hide();
			$('.vid_player_01 #videobtn').hide();
			$('.vid_player_01 .vid_player_01_whtbkg').hide();
			
			
			
			setPlayerSize();
			
			$('.vid_player_01 #theaterContainer').show();
		});
		
		// ponemos el thumb y el titulo del video 
		
		if (typeof(objHtml5) != "undefined"){
			$('.vid_player_01 .vid_player_01_black').text(objHtml5.properties.title);
			$('.vid_player_01 #img_stage_01_IMG').attr('src', objHtml5.properties.thumbnail);
		}
		
		
		
		$(window).resize(function() {
			setPlayerSize();
		});
	}
	
});


function setPlayerSize(){
	
	if ($.browser.msie && parseInt($.browser.version, 10) <= 7){
		var anchoVentna = document.body.offsetWidth;
		
	}
	else{
		var anchoVentna =  $(window).width();
	}
	
	// Si el version movil obtenemos el alto y ancho de la imagen para adaptar el tamaño del player
	if( anchoVentna <= 590 ){
		
		// proporcion entre el ancho y alto fijos con el ancho variable
		var altoVentana = (anchoVentna * vid_player_01_player.height) / vid_player_01_player.width;
		
		$('.vid_player_01 #myExperience').width( anchoVentna );
		$('.vid_player_01 #myExperience').height( altoVentana );
		
		$('.vid_player_01 #contenedor').width( anchoVentna );
		$('.vid_player_01 #contenedor').height( altoVentana );
	}
	else{
		
		$('.vid_player_01 #myExperience').width( vid_player_01_player.width );
		$('.vid_player_01 #myExperience').height( vid_player_01_player.height );
		
		$('.vid_player_01 #contenedor').width( vid_player_01_player.width );
		$('.vid_player_01 #contenedor').height( vid_player_01_player.height );
		
	}
}/*C://xampp//htdocs//Televisa//\vid_player_01\js\vid_player_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\vid_playr_01\js\vid_playr_01.js*/

 /* ******************************************************* */ 
 /* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/*C://xampp//htdocs//Televisa//\vid_playr_01\js\vid_playr_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_nwslt_01\js\wdg_nwslt_01.js*/

 /* ******************************************************* */ 
 function hideEmailText(){
	$('.email-txt').val("");
}

function showEmailText(){
    if($('.email-txt').val()==""){
        $('.email-txt').val("Correo electrónico");
    }
}
/*C://xampp//htdocs//Televisa//\wdg_nwslt_01\js\wdg_nwslt_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_podcastpag_01\js\wdg_podcastpag_01.js*/

 /* ******************************************************* */ 
 (function() {
    $(document).ready(function() {
        
	$('.wdg_podcastpag_01 .wdg_podcastpag_01_show').click(function(e){
            e.preventDefault();
            
            $(this).next(".selected").removeClass("selected");
            $(this).addClass("selected"); 
            
            var parent = $(this).closest(".wdg_podcastpag_01");
            var podcasts = parent.find(".wdg_podcastpag_01_podcasts");
            var paginator = parent.find(".nav_paginator_01");    
            
            podcasts.slideUp('fast');
            paginator.slideUp('fast');

            
        });
        
        $('.wdg_podcastpag_01 .wdg_podcastpag_01_hide').click(function(e){
            e.preventDefault();
			$(this).prev(".selected").removeClass("selected");
            $(this).addClass("selected");
            

            var parent = $(this).closest(".wdg_podcastpag_01");
            var podcasts = parent.find(".wdg_podcastpag_01_podcasts");
            var paginator = parent.find(".nav_paginator_01");    
            
            podcasts.slideDown('fast');
            paginator.slideDown('fast');

        });
    });
}());/*C://xampp//htdocs//Televisa//\wdg_podcastpag_01\js\wdg_podcastpag_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_podcastpag_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_podcastpag_01\js\Array*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_poll_01\js\wdg_poll_01.js*/

 /* ******************************************************* */ 
 
(function() {
    $(document).ready(function() {
        $('#btn_wdg_poll_01').click(function(){
            $(".wdg_poll_01 form .wdg_poll_01_results").show();
            $(".wdg_poll_01 form .wdg_poll_01_options").hide();
            $(".wdg_poll_01 form .wdg_poll_01_submitbutton").hide();
            $(".wdg_poll_01 form .wdg_poll_01_total").show();

        });

    }); 
}());

 



/*C://xampp//htdocs//Televisa//\wdg_poll_01\js\wdg_poll_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_sched_01\js\wdg_sched_01.js*/

 /* ******************************************************* */ 
 $(document).ready(function() {
//$(document).ready(function() {	
    jQuery(function($){ 
        (function($,T){
            $('.wdg_sched_01').each(function(ix,element){
            
                var $this = $(this), 
                Pointer = {
                    UP: (T.getIsTouchDevice()) ? 'touchend' : 'mouseup',
                    DOWN: (T.getIsTouchDevice()) ? 'touchstart' : 'mousedown'
                }, 
                $theUl = $this.find('>ul')
                ;
            
                $this.find('.arrows a.prev, .arrows a.next, .arrows .deportes-prev, .arrows .deportes-next').click(function(event){
                    event.preventDefault();
                });
            
                $this.find('a.prev, .deportes-prev').bind(Pointer.DOWN,function(){
                    $theUl.animate({
                        'scrollTop': $theUl.scrollTop() - $theUl.height()
                    }, 500);
                });
            
                $this.find('a.next, .deportes-next').bind(Pointer.DOWN,function(){
                    $theUl.animate({
                        'scrollTop': $theUl.scrollTop() + $theUl.height()
                    }, 500);

                });
            
            });
        })($,Televisa);
    });

}); 
/*C://xampp//htdocs//Televisa//\wdg_sched_01\js\wdg_sched_01.js*/

 /* ******************************************************* */ 
 /*C://xampp//htdocs//Televisa//\wdg_wethr_01\js\wdg_wethr_01.js*/

 /* ******************************************************* */ 
 
    (function() {
        $(document).ready(function() {
            if (!$.browser.opera) {
                $('select.select').each(function(){
                    var title = $(this).attr('title');
                    if( $('option:selected', this).val() != ''  ) title = $('option:selected',this).text();
                    $(this)
                    .css({
                        'z-index':10,
                        'opacity':0,
                        '-khtml-appearance':'none'
                    })
                    .after('<span class="select">' + title + '<span class="arrow">></span></span>')
                    .change(function(){
                        val = $('option:selected',this).text();
                        $(this).next().html( val + '<span class="arrow">></span>');
                    
                    });
                });
                
                //Mostrar elementos por estado 
                $("li.dos,li.tres,li.show").show()
                $("li.dos,li.tres,li.cuatro").hide()
                $('#states #cities').change(function(){
                    var valorID = $(this).find("option:selected").attr('id');
                    //console.log(valorID); 
                   
                    $('.wdg_wethr_01 .container-wdg ul').each(function(){
                        $("li.uno,li.dos,li.tres,li.cuatro[id!='"+ valorID +"']").hide()
                    });  
                    
                    if(valorID == "uno"){
                        $(".wdg_wethr_01 .container-wdg ul li.show").show();
                    }
                    else{
                        $(".wdg_wethr_01 .container-wdg ul li.show").hide();
                    }
                   
                    $(".wdg_wethr_01 .container-wdg ul li."+valorID).show();
                    
                    //Si valorID 
                    if(valorID == 0)
                    {
                        $('#wdg-active').hide();
                        $('.container-estates').show();
                    }
                   
                });
                
                $('#states1 #cities').change(function(){
                    var valorID = $(this).find("option:selected").attr('id');
                    //alert(valorID);
                    
                    $("#wdg-active").show();
                    $(".container-estates").hide();
                    $(".wdg_wethr_01 .container-wdg ul li.show").show();
                    $("#containter-internal li'").hide();
                    
                    if(valorID == "uno"){
                        $(".wdg_wethr_01 .container-wdg ul li.show").show();
                    } 
                    else{
                        $(".wdg_wethr_01 .container-wdg ul li.show").hide();
                    }
                });
                
            }; 
        }); 
    }());





/*C://xampp//htdocs//Televisa//\wdg_wethr_01\js\wdg_wethr_01.js*/

 /* ******************************************************* */ 
 